<template>
	<view class="container" @touchstart="scrollTop" @touchend="scrollTop2">
		<!-- 头部 -->
		<view class="fix-title">
			<view class="header">
				<view class="header-sculpture">
					<view :class="[[0,1].includes(contentMessage.userIdentityStatus)||userToken=='' ?'img':'img2' ]  "
						@click="gomy">
						<image v-if="contentMessage.userIdentityStatus==0||(userToken=='')" class="frame" src="" mode=""
							src="../../static/icon3/1.png"></image>
						<image v-if="contentMessage.userIdentityStatus==1||contentMessage.approvalFlag==1" class="frame"
							src="../../static/icon3/2.png">
						</image>
						<image v-if="contentMessage.userIdentityStatus==2" class="frame" src="../../static/icon3/3.png">
						</image>
						<view class="undone2" v-if="boolFlag"> 评分过低 </view>
						<text class="undone" v-if="userToken==''">未登录</text>
						<!-- // 0默认头像 1审核未通过，更换头像 2已认证 3审核中 -->
						<image class="avatar" v-show="[0,1,3,'',null].includes(headStatus)" src="../../static/logo.png"
							mode="">
						</image>
						<image v-show='headStatus==2' class="avatar" :src="pic+'?imageView2/1/w/80/h/80'">
						</image>
						<view class="red-dot"
							:style="{position:'absolute',top:contentMessage.userIdentityStatus==2?'22rpx':'4rpx',right:contentMessage.userIdentityStatus==2?'8rpx':'0'}"
							v-if="noticeFlag">
						</view>
					</view>
				</view>
				<view class="tips" @click='onOpen' v-if="contentMessage.approvalFlag==1"> 权益体验中 <image class="img"
						src="../../static/why.png" mode=""></image>
				</view>
				<view class="header-center ">
					<location-search @hideModal="hideModal" @areaCode="getAreaCode" :srtf="srtf" :isSrtf="isSrtf"
						:citys='citys' @changeIsSrtf="changeIsSrtf">
					</location-search>
				</view>
				<view class="header-box">
					<view class="header-box-gen">
						<image v-if="isSearchStatic" @click="cancelSearch()" src="/static/icon3/search-active.png"
							mode=""></image>
						<image v-else @click="isSearchStatic=true" src="/static/icon3/search.png" mode=""></image>
					</view>
					<view class="header-box-gen header-box-r" @click="showPopup()">
						<image v-if="isScreen" src="/static/homechange/activeScreen.png"></image>
						<image v-else src="/static/homechange/screen.png" mode=""></image>
					</view>
				</view>
			</view>
			<u-popup round=24 :show="Boolean(show&&userToken)" mode="bottom" @close="close">
				<view class="headerSelect">
					<view class="icon" @click="close()">
						<u-icon name="close"></u-icon>
					</view>
					<view class="headerSelect-title">
						<text>筛选设置</text>
					</view>
					<!-- <view class="headList">
						<view class="headList-left">
							<text>距离</text>
						</view>
						<view :class="[screenObj.distanceMax=='0'?'active':'','headList-right']"
							@click="selectDistance()">
							<text>由近到远</text>
						</view>
					</view> -->
					<view class="headList">
						<view class="headList-left">
							<text>工价</text>
						</view>
						<view :class="[screenObj.wagesMax?'active':'','headList-right']" @click="selectPrice()">
							<text>由高到低</text>
						</view>
					</view>
					<view class="headList">
						<view class="headList-left">
							<text>区域</text>
						</view>
						<swiper class="area-item" :indicator-dots="false" :autoplay="false" :interval="3000"
							:current="swiperCurrentIndex" :duration="1000" previous-margin="48px" next-margin="48px"
							:circular="true" @change="swiperChange">
							<swiper-item v-for="(val,key,index) in street" :key='index'>
								<view :class="[swiperCurrentIndex===index?'swiper-current':'','swiper-item']">
									{{val}}
								</view>
							</swiper-item>
						</swiper>
					</view>
					<view class="headList">
						<view class="headList-left">
							<text>工时</text>
						</view>
						<view class="headThree">
							<view v-for="(item,index) in timeList" :key="item.id" class="text"
								:class="timeCurrentIndex===index?'active':''" @click="selectTime(item.id,index)">
								<text>{{item.name}}</text>
							</view>
						</view>
					</view>
					<view class="headList">
						<view class="headList-left">
							<text>工类</text>
						</view>
						<view class="headThree">
							<view v-for="(item,index) in typeList" :key="item.id" class="grade"
								:class="typeCurrentIndex===index?'active':''" @click="selectType(item.id,index)">
								<text>{{item.name}}</text>
							</view>
						</view>
					</view>
					<view class="bottomBtn">
						<view class="headList-left" @click="reset()">
							<text>重置</text>
						</view>
						<view class="headList-right" @click="setting()">
							<text>确认设置</text>
						</view>
					</view>
				</view>
			</u-popup>
			<view>
			</view>
			<view class="page-section-spacing">
				<uni-swiper-dot mode="dot" :info="configBanner" :dotsStyles="dotsStyles" :current="currents">
					<swiper class="swiper" @change="change" circular="true" :autoplay="autoplay" interval="3500"
						duration="200">
						<swiper-item v-for="(item , index) in configBanner" :key="index">
							<image class="image" v-if="item.act.split('?')[1]=='isApp=true'" :src="item.img"
								@click="tiaozhuanXcx(item.act)" mode="aspectFill">
								<image class="image" v-else :src="item.img" @click="tiaozhuan2(item.act)"
									mode="aspectFill"></image>
							</image>
						</swiper-item>
					</swiper>
				</uni-swiper-dot>
				<view class="fudai-icon-box" @click="openFudai" v-if="isShowSmallFudai">
					<image src="../../static/small-fudai.png" mode="widthFix"></image>
				</view>
			</view>
			<view class="hg-30" style="height: 0rpx;"></view>
			<swiperTip :zimuAutoplay='zimuAutoplay'></swiperTip>
			<view class="change-select">
				<span :class="isNewTask === 0 ? 'select' : ''" @click="changeTask(0)">新任务</span>
				<span :class="isNewTask === 1 ? 'select' : ''" @click="changeTask(1)">进行中</span>
			</view>
		</view>
		<!-- 零工列表 -->
		<scroll-view v-if="isNewTask===0" class="scroll-view" :scroll-y="true" @scrolltolower="task_list(1)"
			:scroll-top="scrollTopHeight" @touchstart="scrollTop" @touchend="scrollTop2" lower-threshold="300">
			<view class="">
				<view class="list" v-if="!hasFlag2">
					<!-- 单王周榜提示 -->
					<view v-if="isOpenDanwang=='1'&&isShowDanwang" class="danwang" @click="toWeek()"> 今日单王榜单已更新，点击查看
						<uni-icons type="forward" color="#ffffff" size="10">
						</uni-icons>
					</view>
					<view class="job-info" v-for="(item,index) in jobList2" :key="index"
						:style="{background:((((item.sort!=0)||(item.jiacheTimess >0)||item.delayFlag)&&(addTaskNumber(item.applyNum, item.invitation) < item.number)))? '#EDEDED' :'#fff' }"
						@click="handleOpenJobDetail(item.id,item.applyNum,item.invitation,item.number,item.userIdentityStatus,item.jiacheTimess)">
						<view>
							<image v-if="item.jiacheTimess>0" src="../../static/icon3/grow/jinpai.png" mode=""
								style="width: 60rpx;height: 60rpx; position: absolute;left: 0;top:0">
							</image>
							<view style="display: flex;justify-content: center;align-items: center;">
								<view v-if="item.delayFlag" class="youxian-tab"> 优 </view>
								<text
									class="goods-name">{{ item.name.length>10 ? item.name.slice(0,10)+'...' : item.name }}</text>
								<view v-if="item.nucleicAcid"
									style="margin-left: 10rpx;border: 1px solid #ED0833;padding: 4rpx 8rpx;border-radius: 6rpx;display: flex;justify-content: center;align-items: center;">
									<text style="color: #ED0833;font-size: 22rpx;">需要{{item.nucleicAcid}}小时核酸</text>
								</view>
							</view>
							<text
								:style="{ color: item.applyNum >= item.number ? '#FF650C' : '#402110' }">{{ addTaskNumber(item.applyNum, item.invitation) >= item.number ? '已满' : (addTaskNumber(item.applyNum, item.invitation) +'/'+item.number+'人')}}</text>
						</view>
						<view>
							<view class="tag">
								<text v-if="item.tomorrow" class="tag-tomorrow">明天</text>
								<text
									v-if="([0,1,2].includes(item.sex))">{{ item.sex===0 ? '男' : (item.sex===1 ? '女':'不限')}}</text>
								<text
									v-if="item.isVirtual==1 && item.taskRange != null && item.taskRange !=''">{{ item.taskRange+'岁' }}</text>
								<text
									v-else-if="item.isVirtual==0 && !(item.ageMax==55&&item.ageMin==18)">{{ item.ageMin}}-{{item.ageMax}}岁</text>
								<text>{{ item.workTime }}小时</text>
							</view>
							<!-- 距离 -->
							<text style="text-wrap: nowrap;"><text>{{item.address}}</text>
								{{ (Math.round(item.distance*1000)/1000).toFixed(2) }}km</text>
						</view>
						<view>
							<view class="taskState"
								:style="{textWrap:'nowrap', color: (item.jiacheTimess >0||item.vipflagdate=='1970-01-01 01:01:01')&&item.vipFlag==1 ? '#4E9800' : item.taskType===1 ? '#53940D' :  '#FE4538'}  ">
								<!-- 工资 -->
								<text class="money">
									{{ item.jiacheTimess >0||item.vipflagdate=='1970-01-01 01:01:01' ? (item.reward+item.subsidy) : item.reward}}</text>
								<text
									style="font-weight: bold;font-size: 20px;">{{item.taskType===0 ? '元/时' : item.taskType===1 ? '元/件' : item.taskType===2 ? '元/天' : ''}}
								</text>
								<text v-if="item.floorsstr==1||(item.id==1&&item.taskType==1)"
									class="floorsstr-view">保底{{item.floorsAmount}}元/时</text>
								</text>
								<view class="subsidy"
									v-if="item.subsidy &&(item.jiacheTimess >0||item.vipflagdate=='1970-01-01 01:01:01')">
									(含补贴{{item.subsidy}}{{item.taskType===0 ? '元/时' : item.taskType===1 ? '元/件' : item.taskType===2 ? '元/天' : ''}})
								</view>
								<!-- 补贴 -->
								<view class="subsidy1"
									v-if="item.vipFlag && item.subsidy && item.taskType&&(item.jiacheTimess >0 ||item.vipflagdate=='1970-01-01 01:01:01')">
									补: {{item.subsidy}}元 </view>
								<!-- 保底时薪 -->
								<view class="jinpaidaojishi" v-if="item.jiacheTimess>0">
									<view class="jinpaidaojishi-content">
										<image src="../../static/icon3/adasdasd.png" mode="aspectFill"></image>
										<text style="text-wrap: nowrap;">金牌</text>
									</view>
									<view class="jinpaidaojishi-time">
										{{item.jiacheTimes.slice(3,item.jiacheTimes.indexOf('.'))}}
									</view>
								</view>
								<!-- 收藏优先 -->
								<view class="collection">
								</view>
							</view>
							<view class="to-detail"
								@click="handleOpenJobDetail(item.id,item.applyNum,item.invitation,item.number,item.userIdentityStatus,item.jiacheTimess)">
								查看详情 </view>
						</view>
					</view>
				</view>
				<view class="list2" v-if="hasFlag2">
					<view class="list-empt">
						<u-empty mode="data" text="暂无数据" :textSize="28" :width="480" :height="480"
							icon="https://images.linglinggong.net/Fl2OHxDYWu6prkOMk2EdFSPqVxdz">
						</u-empty>
					</view>
				</view>
				<view v-if="countDown!=''" :class="yaoqing_type==7?'wait-for-confirmation':'wait-for-confirmation-red'"
					@click="getConfirmInvitation()">
					<text
						class="wait-for-confirmation-text">{{yaoqing_type==7?'待确认同意':yaoqing_type==1?'待确认订单':''}}</text>
					<view>
						<text class="wait-for-confirmation-time">{{countDown}}</text>
						<image class="wait-for-confirmation-icon" src="@/static/icon3/11.png" mode="aspectFill"></image>
					</view>
				</view>
				<!-- 新增雇员首页按钮  zwyLive zwyBeat zwyHover1-->
				<view v-if="userToken !=='' && isShowDaikgong" class="wait-for-confirmation zwyHover1"
					style="bottom: 19%;width: 160rpx;height: 60rpx;border-radius:30rpx;background: #FF3D2C;box-shadow: 0px 0px 20rpx 0px rgba(255, 62, 43, .5);"
					@click="jumpJobDetail">
					<text class="gz-zhong-text">待开工</text>
				</view>
				<!-- v-if="userToken !=='' && userJobStatus==1 || isShowWorking" -->
				<view v-if="userToken !=='' && isShowWorking" class="wait-for-confirmation zwyHover1"
					style="bottom: 15%;width: 160rpx;height: 60rpx;border-radius:30rpx;background: #17C295;"
					@click="jumpJobDetail">
					<text class="gz-zhong-text">工作中</text>
				</view>
				<view v-if="userInfo.receivenumstatus==0&&Object.keys(New_people_share_rewards_obj).length!=0"
					class="renxinhongbao" @click="gotoxinrenPage()"
					:style="{'background-image':(New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]<=New_people_share_rewards_obj.dangqiangongshi)?'url(../../static/icon3/xinrengongshihongbao/12312321312.png)':'url(../../static/icon3/xinrengongshihongbao/5.png)'}">
					<text
						class="renxinhongbao-weijiesuo">{{(New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]<=New_people_share_rewards_obj.dangqiangongshi)?'待解锁':'未解锁'}}</text>
					<view class="renxinhongbao-jiage">
						<text>{{New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]}}</text>
						<text>元</text>
					</view>
					<view class="jieduan-jindu">
						<view class="jieduan-jindu-line" :style="{width: jindu_num+'rpx'}"></view>
					</view>
					<view class="renxinhongbao-shengyuxiaoshi">
						<text>{{(New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]<=New_people_share_rewards_obj.dangqiangongshi)?'以满足':'还剩'}}</text>
						<text
							v-if="(New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]>New_people_share_rewards_obj.dangqiangongshi)">{{Math.round((New_people_share_rewards_obj.jiefengguizhe.split(',')[New_people_share_rewards_obj.number]-New_people_share_rewards_obj.dangqiangongshi)*10)/10+'小时'}}</text>
					</view>
				</view>
				<uni-load-more :status="hasFlag ? 'loading' : isNoMore ? 'noMore' : ''"></uni-load-more>
			</view>
			<!-- 进行中任务列表 -->
		</scroll-view>
		<scroll-view v-else class="scroll-view" :scroll-y="true" @scrolltolower="order_list" @touchstart="scrollTop"
			@touchend="scrollTop2" lower-threshold="300">
			<view class="undoneList">
				<view class="undoneList-empty" v-if="!isUndoneList">
					<view class="list-empt">
						<image src="../../static/undoneList-empty.png" mode=""></image>
					</view>
				</view>
				<u-swipe-action v-else>
					<u-swipe-action-item v-show="show1" v-for="(item,index) in undoneJobList" :key="index"
						:options="[{text: '删除',style: {backgroundColor: '#f56c6c'}}]"
						@click="handleDeleteLine(item.id,item.status)">
						<view class="job-info" @click.stop="handleOpenPage(item.id)">
							<view>
								<text>{{item.taskName}}</text>
								<!-- 迟到 -->
								<view class="beLate" v-if="item.detectionTime"> 请在 {{item.detectionTime|belate}} 前开工
								</view>
								<!-- 状态栏 -->
								<view class="status"
									:class="item.status === 1 ? 'waitEmployer' : item.status === 7 ? 'waitEmployee' : item.status === 2 ? 'waitWork' : (item.status === 3||item.status === 4) ? 'inProgress' : item.status === 5 ? 'finish' : item.status === 0 ? 'cancel' : 'comment' ">
									{{ item.status === 1 ? '待确认接单' : item.status === 7 ? '等待雇员同意' : item.status === 2 ? '待开工' : item.status === 3 ? '进行中' : item.status === 5 ? '已完成' : item.status === 0 ? '已取消' : item.status === 4 ? '等待雇主付款' : item.status === 9 ? '待同意' : '等待雇主开工确认' }}
								</view>
							</view>
							<view>
								<text v-if="item.status!=0&&item.status!=3&&item.status!=5">
									{{getShowAdd(item.taskAddress)}}</text>
							</view>
							<view>
								<view>
									<text class="money"
										:style="{color: item.vipFlag ? '#4E9800' : item.taskType===1 ? '#53940D' :  '#FE4538'}">
										{{ item.taskType===0 ? (item.rewardY+item.subsidyY) : item.rewardY}}
										<text style="font-size: 40rpx;font-weight: bold;">
											{{ item.taskType===0 ? '元/时' : item.taskType===1 ? '元/件' : item.taskType===2 ? '元/天' : ''}}
										</text>
										<text v-if="item.floorsstr==1"
											class="floorsstr-view">保底{{item.floorsAmount/100}}元/时</text>
									</text>
									<text style="display: none;" class="money"
										:style="{color: item.vipFlag ? '#4E9800' : '#FF650C'}" v-if="item.taskType==1">
										{{ item.floorsAmountY }}元/时 </text>
								</view>
								<view class="subsidy" v-if="item.vipFlag && item.subsidy && item.taskType">补:
									{{item.subsidyY}}元 </view>
								<!-- 按钮 -->
							</view>
							<!-- 补贴 -->
							<view class="buttons" v-if="item.status != 0 && item.status != 4&&!item.resignation">
								<view
									@click.stop="handleOpenModal(0, item.status, item.id,null,null,null,null,null,null,null,null,item.isExpel)"
									class="button"
									v-if="item.status != 5 && item.status != 9 && item.status != 2 && item.status != 1 && item.isExpel!=false">
									{{item.status == 7 ? '拒绝' : item.isExpel==true?'辞工':'取消'}}
								</view>
								<view @click.stop="handleOpenModal(0, item.status, item.id)" class="button"
									v-if="item.status != 5 && item.status != 9 && item.status == 1">
									{{item.status == 7 ? '拒绝' : ('取消'+countDown) }}
								</view>
								<view
									@click.stop="handleOpenModal(1, item.status, item.id , item.taskType, (item.reward+item.subsidy), item.startTime,item.taskStartTime,item.taskEndTime,item.levelsd,item.floorsstr,item.floorsAmount,null,item.createBy,item.avatar,item)"
									class="button"
									v-if="(item.status==5&&(item.isEmployeeEvaluate==0)) || (item.status == 2) || (item.status == 3)&&item.isExpel!=true || (item.status == 7) || (item.status == 1)"
									:style="{background: item.status == 7 ? '#4E9800' : '#FCC928', border: item.status == 7 ? '#4E9800' : '#FCC928'}">
									{{item.status == 7 ? ('同意'+countDown) : item.status == 2? '开工': item.status == 9 ? '待同意' : item.status == 3 ? '收工' : (item.status == 5 && (item.isEmployeeEvaluate==0)) ? '评价' : item.isOldStaff||item.disturbstatus==1?'直接接单':item.isConfirm?'确认接单':'拨打电话'}}
								</view>
							</view>
							<view class="buttons buttonCont" v-if="item.resignation">
								<view class="">
									<view class="buttonText" v-show="showTip&&item.id==nowId"
										@click.stop="onCigong(item.id)"> 辞工 </view>
									<view @click.stop="onShowToop(item.id)" class="button buttonIcon ">···</view>
								</view>
							</view>
						</view>
					</u-swipe-action-item>
				</u-swipe-action>
			</view>
		</scroll-view>
		<!-- isShowIncome 收工计件  -->
		<u-popup round=24 :show="isShowIncome" mode="bottom" @close="isShowIncome=false">
			<view class="shougong">
				<view class="shougong-title">确认收工</view>
				<view class="shougong-tip"> 为了避免纠纷,请于雇主核实数量后再填写 </view>
				<view class="shougong-form">
					<text class="shougong-form-text">完成件数</text>
					<view class="shougong-form-input">
						<input class="shougong-form-input-o" type="number" v-model="count" @input="handleInput" />件
					</view>
				</view>
				<view class="shougong-form">
					<text class="shougong-form-text">计件单价</text>
					<text class="income-content-text-jiage">{{income_reward}}元/件</text>
				</view>
				<view class="shougong-form">
					<text class="shougong-form-text">计件工资</text>
					<text class="income-content-text-zongji"
						:style="{color:isShowBaodi_reward?'#000000':'#FF4600'}">{{income_money}}元</text>
				</view>
				<view class="shougong-footer makeSureBtn">
					<view @click="close_ShowIncome()">取 消</view>
					<view @click="income_click()" style="font-weight: 600;">确 认</view>
				</view>
			</view>
		</u-popup>
		<!-- 强制收工  isShouGong-->
		<view class=" mask mask2" v-if="isShouGong">
			<view class="income-content" @click.stop="isShouGong=false">
				<view class="income-content-text">提前收工提示</view>
				<view class="income-content-text2 btn-text1"> 请确认雇主是否允许您收工！ </view>
				<view class="income-content-baodi-view btn-text2">私下收工，您的账号将会有封禁风险</view>
				<view class="income-content-text-button">
					<view class="income-content-text-button-ok2 btn-left" @click="handleRight(0)"
						style="color: #7F7F7F!important;">已沟通，可以收工 </view>
					<view class="income-content-text-button-cancel btn-right"
						style="color:#262626;!important;border-right: none" @click="isShouGong=false"> 取消 </view>
				</view>
			</view>
		</view>
		<!-- 弹窗 -->
		<modal :isShowModal="isShowModal" :modalStytle="modalStytle" :unitPrice="unitPrice" :workTime="workTime"
			:workPrice="workPrice" :jobType="jobType" :jobleve="jobleve" @handleLeft="handleLeft"
			@handleRight="handleRight" @input="handleInput" :titleContect="titleContect" :middleContext="middleContext"
			:leftContext="leftContext" :rightContext="rightContext" :contentColor="contentColor"
			:contentsColor="contentsColor">
		</modal>
		<sealModel v-if="isShowSealAlert" :day="sealDay" @handleLeft="isShowSealAlert=false"
			@handleRight="handleRight()"></sealModel>
		<pingjia v-if="isShowpingjia" @close="closePj()" :userList="pj_user_list"></pingjia>
		<u-modal content="删除订单后将不能恢复，是否确认删除？" :show="show2" showCancelButton width="580rpx" closeOnClickOverlay
			confirmColor="#F39B19" cancelColor="#ABABAB" @confirm="confirm" @cancel="cancel"></u-modal>
		<!-- 刷新圈 -->
		<image v-if="isRotate" :class=" isRotate ? 'rotate' : ''" src="@/static/circle.png" mode="aspectFill"></image>
		<view class="zuliAlert" v-if="isShowZuliAlert">
			<image src="../../static/icon1/hdg.png" mode="aspectFill"></image>
			<text>已帮好友成功助力</text>
			<image src="../../static/icon3/gb.png" mode="aspectFill" @click="closeZuliAlert()"></image>
		</view>
		<u-popup mode="center" :show="isShowFudai" @close="closeFudai" @open="openFudai" :closeOnClickOverlay="false"
			bgColor="rgba(0,0,0,0)">
			<view class="fudai-box">
				<view class="fudai-box-center" @click="shoudao">
					<view class="fudai-box-center-desc">{{messageObj.msg}}</view>
				</view>
			</view>
		</u-popup>
		<!-- 爽约 超时   -->
		<view @click="todetail" class="chaoshi" v-if="shuangyue"> 已超时
			{{shuangyue.slice(0,shuangyue.indexOf('.')).slice(0,5)}}
		</view>
		<!-- 蒙版提示 -->
		<coverTip v-if="isShowMengban" @closeMengban='closeMengban'></coverTip>
		<!-- 不是金牌点击金牌任务提示提示弹框 -->
		<bullet @toClose='toClose' isHiden=1 v-if="isShowBullet" :taskDetail='contentMessage'></bullet>
		<!-- isScoreLimit -->
		<view class="mask" v-if="false" style="z-index: 9999;">
			<view class="content">
				<image @click="isScoreLimit=false" src="/static/icon3/close1.png" mode=""></image>
				<view class="inner">
					<view class=""> 账号被限制接单中 </view>
					<view class=""> 评分已低于 <span>60</span> 分 </view>
					<view class="" v-if="grade==4">
						<span>999</span>天<span>0</span>小时
					</view>
					<view class="" v-else>
						<span>{{recoveryDay}}</span>天<span>{{recoveryTours}}</span>小时
					</view>
					<image src="/static/score-limit-big.png" mode=""></image>
				</view>
				<view class="btn" @click="toScore()"> 查看评分 </view>
			</view>
		</view>
		<!-- 试用正式提示 -->
		<Popupdown v-if="isShowPop" @popClose='popClose' :isShowPop='isShowPop'></Popupdown>
		<newStaffMy v-if="userToken&&isOpenMenu" ref="drawer" @isShowMenu='isShowMenu'></newStaffMy>
		<!-- 搜索 -->
		<search ref="search" :isSearchStatic="isSearchStatic" @changeSearchStatus="changeSearchStatus"
			@searchName="searchName">
		</search>
		<bulletBox :showMask='showMask' v-if="!!showMask"></bulletBox>
		<UniversalBox @onLeft='onLeft' @onRight='onRight' @onClose='onClose' v-if="mergeMessageBoolFlag" :typeBtn='2'>
			<view slot="contentText">
				{{`您近期${mergeMessage.behavior}行为,被平台扣除${mergeMessage.platformDeduction}分,当前剩余${mergeMessage.score}分,将影响您工作报名,请及时改正并遵守平台规则。` }}
			</view>
		</UniversalBox>
	</view>
</template>
<script>
	import format from '@/libs/day-format.js'
	import findKey from '@/libs/find-key.js'
	import placeMap from '@/libs/place-map.js'
	import unit from '@/libs/newUnit.js'
	import AudioPlayer from 'untils/audio-player.js';
	import timeHMS from 'untils/time.js'
	import vibration from '../../libs/vibration.js'
	import warningPromptBanner from '@/components/warningPromptBanner/warningPromptBanner'
	import sealModel from '@/components/xjbg/sealModel.vue'
	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue'
	import modal from '@/components/modal/modal.vue'
	import Voice from '@/libs/QS-baiduyy.js'
	import bullet from '@/components/bullet/bullet.vue'
	import Popupdown from '@/components/Popupdown/Popupdown.vue'
	import collectPopup from '@/components/collectPopup/collectPopup.vue'
	import coverTip from '@/components/coverTip/coverTip.vue'
	import newStaffMy from '@/components/newStaffMy/newStaffMy.vue'
	import search from '@/components/search/search.vue'
	import phoneLimite from '@/libs/function/phoneLimite.js' //判断是否有拨打电话权限
	import {
		isToDay,
		getSealDay,
		isResidueTimeByMinute,
		New_people_share_rewards,
	} from '@/libs/unit.js'
	import bulletBox from './com/bulletBox.vue'
	import swiperTip from './com/swiperTip.vue'
	export default {
		props: {
			pageNum: 0,
			undoneTask: '',
			vipFlag: "", //用户vip
			word: {
				type: String,
				default: ''
			},
			upLocation: {
				type: Boolean
			},
			contentMessage: {
				type: Object,
				default: () => {}
			},
			isShowPost: {
				type: String,
				default: 'none'
			},
			isShowPost22: {
				type: String,
				default: 'none'
			},
			isNew: {
				type: String,
				default: 'none'
			},
			zimuAutoplay: {
				type: Boolean,
				default: true
			},
			mergeMessage: {
				type: Object,
				default: () => {
					return {}
				}
			},
			boolFlag: {
				type: Boolean,
				default: true
			}
		},
		components: {
			uniLoadMore,
			modal,
			sealModel,
			warningPromptBanner,
			bullet,
			Popupdown,
			collectPopup,
			coverTip,
			newStaffMy,
			search,
			bulletBox,
			swiperTip,
		},
		filters: {
			belate(e) {
				return e.slice(10, 16)
			},
		},
		data() {
			return {
				noticeFlag: false,
				type: 1,
				showUniversalBox: false,
				userType2: uni.getStorageSync('userType'), //用户类型0 雇员，1雇主
				taphnum: 0, //改变样式
				oneIndex: '', //首次进入页面弹出
				changesNum: '',
				imghead: '', //head头像
				show: false, //筛选弹出层
				srtf: false,
				citys: '义乌市',
				//scrollViewMarginTop: '188rpx', //114.5
				today: '', //今天的日期，2020-10-09
				tomorrow: '', //明天的日期
				isRotate: false, //是否旋转
				scrollStart: '', //手指触摸初始位置
				scrollEnd: '', //手指离开距离
				distantce: '', //手指滑动距离
				homeSlide: [], // 定义值接收轮播图数据{img:"/static/icon1/66.png",PATH:''},{img:"/static/icon1/66.png"},{img:"/static/icon1/66.png"}
				hasFlag: true, // 是否还有更多数据要加载
				isScreen: false, //是否为筛选状态
				location: uni.getStorageSync('location'), //[lat, lng]当前位置
				areaCode: '', //当前县级市
				imgPath: '', //图片路径
				street: {}, //地点
				screenFlag: false, // 筛选开关
				selectTab: '', // 当前选中的tabbar索引 index
				test: '',
				screenObj: { //上传参数
					isAsc: 'desc', //排序(asc:正序,desc:倒序))
					region: '', //区域，街道
					taskType: '', //零工类型，0计时，1计件，2计天
					orderByColumn: '', //默认排序，0离我最近，1最新发布，2诚信值降序
					sex: '', //0男,1女，2性别不限
					startReward: '', //起薪
					endReward: '', //上限
					pageNum: 0,
					pageSize: 10,
					status: 3, //上架的工作
					statusIn: '3', //上架的,下架的，待结算
					lat: '',
					lng: '',
					token: '',
					userId: '',
					distanceMax: '',
					distanceMin: '',
					wagesMax: '',
					wagesMin: '',
					workingHoursMax: '',
					workingHoursMin: '',
					employerIntimacyMax: '',
					employerIntimacyMin: '',
					employerLevel: '',
					industrialCategory: '',
					name: ''
				},
				comfirmObj: {
					sex: '',
					startReward: '', //起薪
					endReward: '', //上限
				},
				jobList: [], //我的零工列表jobTypeList
				flagOpen: true, //是否打开页面
				handleIsStop: true, // 是否允许切换，网速太慢时
				topSwiperIndex: 0,
				isXinshou: 'none',
				autoplay: true,
				// dot样式
				dotsStyles: {
					width: '6',
					height: '6',
					backgroundColor: 'rgba(0, 0, 0, 0.3)',
					border: '0 solid',
					selectedBackgroundColor: '#FFFFFF',
					selectedBorder: '0 solid',
					bottom: '5'
				},
				currents: 10, //锚点
				timer: 0, //s
				ConfirmInvitationId: [], //
				yq_timer: 0,
				countDown: '',
				yaoqing_type: 1,
				userInfo: {},
				New_people_share_rewards_obj: {},
				jindu_num: 0,
				isShowZuliAlert: false,
				isNoMore: false,
				itmes: 0,
				isShowFudai: false,
				isShowSmallFudai: false,
				userJobStatus: '',
				userToken: uni.getStorageSync('token'),
				isShowWorking: false,
				isShowDaikgong: false,
				messageObj: {},
				placeholder1: '20',
				placeholder2: '工资上限',
				configBanner: [],
				dingD: false,
				dingD1: false,
				dingD2: false,
				dingD3: false,
				timeer: 0,
				hasFlag2: false,
				jobList2: [],
				isNewTask: 0,
				messageNum: 0, //消息数量
				isMessage: false, //是否有消息
				timeList: [{
					id: 0,
					name: '1-6小时'
				}, {
					id: 1,
					name: '6小时以上'
				}],
				gradeList: [{
					id: 0,
					name: '全部'
				}, {
					id: 2,
					name: '金牌'
				}, {
					id: 1,
					name: '普通'
				}],
				typeList: [{
					id: 0,
					name: '全部'
				}, {
					id: 1,
					name: '计时'
				}, {
					id: 2,
					name: '计件'
				}],
				timeCurrentIndex: '',
				gradeCurrentIndex: '',
				typeCurrentIndex: '',
				//进行中,从my-job文件拿过来用的
				undoneHandleIsStop: true, // 是否允许切换，网速太慢时
				undoneToDay: '', //当前时间
				jobleve: 0,
				x_hours_no_order: '', //雇员取消x小时内不可接单
				order_user_cancel_cut_integrity: '', //雇员取消订单扣除诚信值
				place: {}, //省市区
				status: 2, //雇主打钱后的状态
				undoneTimer: [], //定时器
				undoneSelectTab: 0, // 当前选中的tabbar索引 index
				button: 1, //按钮类型
				orderId: '', //点中订单的id
				clickStatus: 0, //工作状态
				jobType: 0, //工作类型0计时工，1：计天工，2计件工
				count: '', //收工雇员输入的计件件数
				modalStytle: 3, //0-left-text,1-two-line,2-hasInput, 3-middle-context
				isShowModal: false, //是否显示弹框
				titleContect: '', //弹框标题
				middleContext: '', //弹框中间的内容
				unitPrice: 0, //计件单价
				workTime: '0', //计时工作时间
				workPrice: 0, //工作单价
				leftContext: '取消', //弹框按钮左边的内容
				rightContext: '确认', //弹框按钮右边的内容
				undoneJobList: [], //进行中任务列表
				undoneHasFlag: false, //是否进行中列表加载完成
				requestObj: { //获取进行中任务列表
					pageNum: 0,
					pageSize: 10,
					status: '',
					statusIn: '',
					taskId: '',
				},
				isEmployeeEvaluate: 0, //0雇员还没有评价雇主,1评价了
				undoneCountDown: [],
				quxiaoFlag: 1,
				isShowIncome: false,
				income_money: 0,
				income_reward: 0,
				baodi_reward: 0,
				isShowBaodi_reward: false,
				is_baodi_work: false,
				sealDay: 3, //禁封天数
				isShowSealAlert: false,
				expel_time: 30,
				contentColor: '',
				contentsColor: '',
				isShowpingjia: false,
				pj_user_list: [],
				currentTaskReceived: [],
				show1: true,
				show2: false,
				delOrderId: '',
				nowTime: 0,
				isUndoneList: true,
				timeHMS,
				time1: null,
				times: '00:00',
				showTip: false,
				nowId: -1,
				isShouGong: false,
				second2: 0,
				minute2: 0,
				leftTime: 0,
				d: 0,
				h: 0,
				m: 0,
				n: 0,
				s: 0,
				oldtIME: false,
				newtime: false,
				timerId: null, //定时器
				shuangyueTime: null,
				shuangyue: '',
				showShuangyue: false,
				msg: '1',
				msgData: null,
				showMessage: uni.getStorageSync('showMessage'),
				isSrtf: false, // 是否提示切换城市
				isShowDanwang: false, // 单王提示		
				// contentMessage: {}, //用户信息
				isShowBullet: false,
				scrollTopHeight: 0,
				isProhibit: false,
				pic: '',
				headStatus: '',
				isFengjin: false,
				isShowPw: false,
				showColloct: false,
				isShowMengban: false, // 蒙版提示
				stateDrawer: false,
				startTime: null, // 手势滑动时间
				startPosition: 0, // 手势进入时
				endPosition: 0, // 手势离开时
				isScoreLimit: false,
				uploadToken: '', // 上传七牛云token
				qiniuyunFile: '', // 上传七牛云获取的key
				isShowBullet: false,
				isShowPop: false,
				isFace: '', //是否开启人脸打卡,1开启0关闭
				isOpenMenu: false, // 是否打开侧边栏
				isOpenDanwang: '', // 单王周榜开关
				swiperCurrentIndex: 0,
				canLoding: true,
				isSearchStatic: false, //是否点开搜索
				plat: "",
				showMask: [],
				tipsContent: {},
				tipsContentbool: false, //扣分提示
				be_bannedbool: false, //封禁
				be_bannedtext: '', //封禁文本
				redDot: false, //消息红点
				mergeMessageBoolFlag: false,
				saveScreenObj: {
					distanceMax: '',
					distanceMin: '',
					wagesMax: '',
					wagesMin: '',
					workingHoursMax: '',
					workingHoursMin: '',
					employerIntimacyMax: '',
					employerIntimacyMin: '',
					employerLevel: '',
					industrialCategory: '',
				}, //保存设置的筛选条件
				saveTimeCurrentIndex: '',
				saveTypeCurrentIndex: '',
				saveSwiperCurrentIndex: 0
			}
		},
		computed: {
			'isFinishModal': function() {
				return this.$store.state.isFinishModal
			}
		},
		onShow() {
			this.showTip = false
			this.nowId = -1
			this.isShowPop = false
			this.undoneRefresh()
			this.order_list()
		},
		async mounted(e) {
			this.showMask = uni.getStorageSync('showMask')
			this.plat = uni.getSystemInfoSync().platform
			setTimeout(() => {
				this.isShowDanwang = true
			}, 10000)
			setTimeout(() => {
				this.isShowDanwang = false
			}, 21000)
			if (uni.getStorageSync('showMessage') === '') {
				uni.setStorageSync('showMessage', true)
			}
			if (this.undoneTask) {
				this.isNewTask = this.undoneTask
			}
			// 爽约
			if (!uni.getStorageSync('isScreenPop') && this.userToken) {
				uni.setStorageSync('isScreenPop', true)
				this.show = true
			}
			if (uni.getStorageSync('quxiaoFlag')) {
				this.quxiaoFlag = isToDay(uni.getStorageSync('quxiaoFlag')[0]) ? uni.getStorageSync('quxiaoFlag')[1] :
					1
			}
			this.expel_time = parseInt(uni.getStorageSync('property_list_by_type').staff_expel_time)
			if (this.$store.state.isFinishModal) {
				this.clickStatus = 5
				this.modalStytle = 0
				this.titleContect = '完成工作'
				this.middleContext = '您已经出色地完成了本次工作，是否继续接单工作？'
				this.leftContext = '我要休息'
				this.rightContext = '继续接单'
				this.isShowModal = true
			}
			if (uni.getStorageSync('token')) {
				this.refreshLocation()
				setInterval(() => {
					this.refreshLocation()
				}, 20000)
			}
			this.undoneRefresh()
			this.getData()
			this.imgPath = uni.getStorageSync('imgPath')
			this.getMyStreet()
			this.refresh()
			console.log(uni.getStorageSync('region'), uni.getStorageSync('region1'), '地址')
			if (uni.getStorageSync('region').slice(0, 6) != uni.getStorageSync('region1').slice(0, 6)) {
				this.isSrtf = true;
			} else {
				this.isSrtf = false;
			}
			this.getToday()
			this.isGetBanner()
			this.closeZuliAlert()
			if (!uni.getStorageSync('xinshouShaixuan')) {
				this.isXinshou = ''
				this.autoplay = false
			}
			uni.$on('openWorking', this.openWorking)
			uni.$on('closeWorking', this.closeWorking)
			uni.$on('openDaikgong', this.openDaikgong)
			uni.$on('closeDaikgong', this.closeDaikgong)
			uni.$on('newInvMsg', data => {
				if (Object.keys(data).length !== 0) {
					this.messageObj = data
					this.isShowSmallFudai = true
				}
			})
			this.messageObj = uni.getStorageSync('newInvMsg')
			if (Object.keys(this.messageObj).length !== 0) {
				this.isShowSmallFudai = true
			}
			this.property_list_by_type_and_key()
			if (uni.getStorageSync('token')) {
				this.showColloctTime()
				if (!uni.getStorageSync('query_user_filtering')) {
					this.query_user_filtering()
				}
				if (!uni.getStorageSync('show')) {
					this.showPopup()
				}
				setTimeout(() => {
					this.init()
				}, 300000)
				setTimeout(() => {
					this.isShowDanwang = true
				}, 10000)
				setTimeout(() => {
					this.isShowDanwang = false
				}, 21000)
			}
			// 0默认头像 1审核未通过，更换头像 2已认证 3审核中
			if (uni.getStorageSync('token')) {
				let avatarto = (this.userInfo.user.avatarto == null || this.userInfo.user.avatar == this.userInfo.user
					.avatarto) ? this.userInfo.user.avatar : this.userInfo.user.avatarto
				this.headStatus = this.userInfo.user.idavaterStatus
				this.pic = avatarto ? (uni.getStorageSync('imgPath') + avatarto) :
					'https://images.linglinggong.net/FqbM4OLbmiUwDDB984eZl5lJudxS'
			} else {
				this.headStatus = 0
			}
		},
		watch: {
			'mergeMessage': {
				handler(n, l) {
					if ('noticeFlag' in n) {
						this.noticeFlag = n.noticeFlag
					}
				}
			},
			distantce: function(newVal) {
				if (!this.isProhibit) {
					if (newVal > 280) {
						this.isRotate = true
						this.refresh()
						if (this.plat == "ios") {
							setTimeout(() => {
								this.scrollTopHeight = Math.random();
							}, 100)
						}
						this.undoneRefresh()
						setTimeout(() => {
							this.isRotate = false
						}, 300)
					}
				}
			},
			upLocation() {
				if (this.upLocation) {
					this.flagOpen = true
					this.refresh()
				}
			},
			//防止每次进入首页都弹评分过低弹窗
			'mergeMessage.boolFlag': {
				handler(newVla, oldVal) {
					this.mergeMessageBoolFlag = this.mergeMessage.boolFlag
				}
			}
		},
		onHide() {
			this.isShowPop = false
			clearInterval(this.shuangyueTime)
		},
		methods: {
			onLeft() {
				this.onClose()
				uni.navigateTo({
					url: '/pages/score/score'
				})
			},
			onRight() {
				this.onClose()
				uni.navigateTo({
					url: '/pages/tousu/employee/index'
				})
			},
			onClose() {
				this.mergeMessageBoolFlag = false
			},
			onClose1() {
				this.be_bannedbool = false
			},
			cancelSearch() {
				this.$refs.search.cancel()
			},
			searchName(name) {
				this.screenObj.name = name
				this.refresh()
			},
			changeSearchStatus(val) {
				this.isSearchStatic = val
			},
			//刷新侧边菜单
			refreshMenu() {
				if (this.isOpenMenu) {
					this.$refs.drawer.getUserToken()
					this.$refs.drawer.getMyflow()
					this.$refs.drawer.get_push_message_records_red_dot()
				}
			},
			swiperChange(e) {
				try {
					vibration()
				} catch (e) {
					//TODO handle the exception
				}
				this.swiperCurrentIndex = e.detail.current;
			},
			isShowMenu(val) {
				this.isOpenMenu = val
			},
			// 收藏弹窗推送,前一周每天弹一次,之后每两天弹一次
			showColloctTime() {
				let now = new Date()
				let nowHours = now.getHours()
				let nowMinutes = now.getMinutes()
				let nowSeconds = now.getSeconds()
				let nowTime = now.getTime()
				let natureDay = nowTime - nowHours * 60 * 60 * 1000 - nowMinutes * 60 * 1000 - nowSeconds * 1000
				if (!uni.getStorageSync('guyuanShowColloct')) {
					this.showColloct = true
					uni.setStorageSync('guyuanShowColloct', natureDay)
					uni.setStorageSync('guyuanShowColloctFirstWeek', natureDay)
				}
				if (uni.getStorageSync('guyuanShowColloctFirstWeek') + (7 * 24 * 60 * 60 * 1000) > nowTime) {
					if (uni.getStorageSync('guyuanShowColloct') + (24 * 60 * 60 * 1000) < nowTime && nowTime < uni
						.getStorageSync('guyuanShowColloct') + (2 * 24 * 60 * 60 * 1000 - 1000)) {
						this.showColloct = true
						uni.setStorageSync('guyuanShowColloct', natureDay)
					}
				} else {
					if (uni.getStorageSync('guyuanShowColloct') + (2 * 24 * 60 * 60 * 1000) < nowTime && nowTime < uni
						.getStorageSync('yuanShowColloct') + (3 * 24 * 60 * 60 * 1000 - 1000)) {
						this.showColloct = true
						uni.setStorageSync('guyuanShowColloct', natureDay)
					}
				}
			},
			Mengban() {
				if (this.show || this.isNew === '' || this.isShowPost === '' || this.isShowPost22 === '') {
					return
				}
				let isYou = this.jobList2.some(item => {
					return item.delayFlag == 1
				})
				if (isYou) {
					if (!uni.getStorageSync('MengbanTipTime')) {
						this.isShowMengban = true
						let firstTime = new Date().getTime()
						let Endtime = firstTime + 6 * 30 * 24 * 60 * 60 * 1000
						console.log(Endtime)
						uni.setStorageSync('MengbanTipTime', Endtime)
						uni.setStorageSync('MengbanLastTime', firstTime)
					}
					let now = new Date().getTime();
					if (now > uni.getStorageSync('MengbanTipTime')) {
						return
					} else {
						if (now - uni.getStorageSync('MengbanLastTime') > (15 * 24 * 60 * 60 * 1000)) {
							console.log(now - uni.getStorageSync('MengbanLastTime'))
							this.isShowMengban = true
							uni.setStorageSync('MengbanLastTime', now)
						}
					}
				}
			},
			closeMengban() {
				this.isShowMengban = false
			},
			collectClose() {
				this.showColloct = false
			},
			property_list_by_type_and_key() {
				this.isFace = uni.getStorageSync('property_list_by_type').task_user_auth_flag // 判断人脸打卡是否开启
				this.isOpenDanwang = uni.getStorageSync('property_list_by_type').single_king_weekly_open_config //单王浮动窗口开关
			},
			// 关闭
			popClose() {
				this.isShowPop = false
			},
			// 查看
			onOpen() {
				this.isShowPop = true
			},
			toScore() {
				uni.navigateTo({
					url: '/pages/score/score'
				})
			},
			// 上传图片至七牛
			async uploadImgs(urls) {
				await this.get_qiniu_token()
				uni.showLoading({
					title: '人脸验证中~~~',
					mask: true
				})
				let _this = this
				let date = new Date()
				let year = String(date.getFullYear()) //获取完整的年份(4位)
				let month = String(date.getMonth() + 1) //获取当前月份(0-11,0代表1月)
				let strDate = String(date.getDate()) // 获取当前日(1-31)
				if (date.getMonth() + 1 < 10) {
					month = `0${month}`
				} // 如果月份是个位数，在前面补0
				if (date.getDate() < 10) {
					strDate = `0${strDate}`
				} // 如果日是个位数，在前面补0
				let time = year + month + strDate
				console.log(time, year, 'vbkdflnb')
				let ext = urls.split(".").pop()
				uni.uploadFile({
					url: this.$api.uploadPic,
					name: 'file',
					filePath: urls,
					formData: {
						token: this.uploadToken,
						key: 'task/user/faceClock/' + time + '/' + this.$u.guid() + "." + ext
					},
					success: ({
						data
					}) => {
						data = JSON.parse(data)
						this.qiniuyunFile = data.key
						this.getLocationAndWork();
						uni.$emit('openWorking', {})
						uni.$emit('closeDaikgong', {})
					}
				})
			},
			// 获取七牛上传TOKEN
			async get_qiniu_token() {
				let res = await this.$fetch(this.$api.get_qiniu_token, {}, 'POST')
				this.uploadToken = res.msg
			},
			toWeek() {
				uni.navigateTo({
					url: '/pages/week-list/week-list'
				})
			},
			changeIsSrtf(e) {
				this.isSrtf = e
			},
			// 时间格式
			timer3(mss) {
				let md = mss + 1000;
				this.newtime = md;
				var days = parseInt(md / (1000 * 60 * 60 * 24));
				var hours = parseInt((md % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
				var minutes = parseInt((md % (1000 * 60 * 60)) / (1000 * 60));
				var seconds = (md % (1000 * 60)) / 1000;
				if (hours < 10) {
					hours = "0" + hours
				}
				if (minutes < 10) {
					minutes = "0" + minutes
				}
				if (seconds < 10) {
					seconds = "0" + seconds
				}
				// minutes = hours 
				return hours + ":" + minutes + ":" + seconds;
			},
			// 获取时间
			async init() {
				let breakThePromise = await this.$fetch(this.$api.break_the_promise, 'GET')
				if (breakThePromise.data && this.msgData == null) {
					this.msg = breakThePromise.msg //如果存在就倒计时
					this.msgData = breakThePromise.msg
					this.oldtIME = new Date(breakThePromise.data).getTime()
					let timestemp = parseFloat(this.oldtIME) //开工时间
					let timestempday = parseFloat((new Date()).getTime()); //当前时间
					this.newtime = parseFloat(timestempday - timestemp);
					if (this.newtime > 0) {
						this.shuangyue = this.timer3(this.newtime)
					} else {
						this.shuangyue = ''
					}
				} else if (breakThePromise.code == 0 && !breakThePromise.data && this.msgData != null) {
					this.msgData = null
					this.newtime = 0
					this.shuangyue = ''
					clearInterval(this.shuangyueTime)
				}
			},
			handleOpenPage(id) {
				uni.navigateTo({
					url: '/pages/order-detail/order-detail?id=' + id
				})
			},
			//点击爽约
			todetail() {
				this.isNewTask = 1
				this.undoneRefresh()
			},
			// 执行
			timeStart() {
				this.shuangyueTime = setInterval(() => {
					this.init()
				}, 60000)
			},
			//定时器
			start(endtime) {
				//判断倒计时是否为0，如果为零即可清楚计时器
				if (this.timeHMS(endtime) == '00:00') {
					clearInterval(this.time1)
				}
				this.times = this.timeHMS(endtime);
			},
			async showPopup() {
				this.isSearchStatic = false
				if (uni.getStorageSync('show')) {
					uni.setStorageSync('showMessage', false)
					this.showMessage = false
				}
				if (uni.getStorageSync('token')) {
					this.isScreen = false
					this.show = true
					uni.setStorageSync('show', true)
					/* let queryUser = uni.getStorageSync('queryUserFiltering');
					let resKey = {};
					// 判断是否有存储进去， 如果存储了的话就不执行接口了， 等待筛选值改变在进行修改
					if (!queryUser) {
						console.log('我是接口请求')
						let res = await this.$fetch(this.$api.query_user_filtering, 'GET');
						if (res.code !== 0) return
						if (res.code) return uni.showToast({
							title: res.msg,
							icon: 'none'
						})
						this.screenObj.distanceMax = res.data.distancemax
						this.screenObj.distanceMin = res.data.distancemin
						this.screenObj.employerIntimacyMax = res.data.employerintimacymax
						this.screenObj.employerIntimacyMin = res.data.employerintimacymin
						this.screenObj.wagesMax = res.data.wagesmax
						this.screenObj.wagesMin = res.data.wagesmin
						this.screenObj.workingHoursMax = res.data.workinghoursmax
						this.screenObj.workingHoursMin = res.data.workinghoursmin
						this.screenObj.industrialCategory = res.data.industrialcategory
						this.screenObj.employerLevel = res.data.employerlevel
						uni.setStorageSync('queryUserFiltering', res.data)
					} else {
						resKey = uni.getStorageSync('queryUserFiltering');
						console.log('我走的是缓存', resKey)
						this.screenObj.distanceMax = resKey.distanceMax
						this.screenObj.distanceMin = resKey.distanceMin
						this.screenObj.employerIntimacyMax = resKey.employerIntimacyMax
						this.screenObj.employerIntimacyMin = resKey.employerIntimacyMin
						this.screenObj.wagesMax = resKey.wagesMax
						this.screenObj.wagesMin = resKey.wagesMin
						this.screenObj.workingHoursMax = resKey.workingHoursMax
						this.screenObj.workingHoursMin = resKey.workingHoursMin
						this.screenObj.industrialCategory = resKey.industrialCategory
						this.screenObj.employerLevel = resKey.employerlevel
					}
					let {
						distanceMax,
						distanceMin,
						wagesMax,
						wagesMin,
						workingHoursMax,
						workingHoursMin,
						employerIntimacyMax,
						employerIntimacyMin,
						employerLevel,
						industrialCategory
					} = this.screenObj
					if (distanceMax || distanceMin || wagesMax || wagesMin || workingHoursMax || workingHoursMin ||
						employerIntimacyMax || employerIntimacyMin || employerLevel || industrialCategory) {
						this.isScreen = true
					}
					if (this.screenObj.workingHoursMax === '6') {
						this.timeCurrentIndex = 0
					} else if (this.screenObj.workingHoursMax === '24') {
						this.timeCurrentIndex = 1
					}
					if (this.screenObj.employerLevel === '1') {
						this.gradeCurrentIndex = 2
					} else if (this.screenObj.employerLevel === '2') {
						this.gradeCurrentIndex = 1
					} else {
						this.gradeCurrentIndex = 0
					}
					if (this.screenObj.industrialCategory === '1') {
						this.typeCurrentIndex = 1
					} else if (this.screenObj.industrialCategory === '2') {
						this.typeCurrentIndex = 2
					} else {
						this.typeCurrentIndex = 0
					} */
				} else {
					uni.reLaunch({
						url: '/pages/login/login'
					})
				}
			},
			selectDistance() {
				if (!this.screenObj.distanceMax) {
					this.$set(this.screenObj, 'distanceMax', '0')
					this.$set(this.screenObj, 'distanceMin', '0')
				} else {
					this.$set(this.screenObj, 'distanceMax', '')
					this.$set(this.screenObj, 'distanceMin', '')
				}
			},
			selectPrice() {
				if (!this.screenObj.wagesMax) {
					this.$set(this.screenObj, 'wagesMax', '0')
					this.$set(this.screenObj, 'wagesMin', '0')
				} else {
					this.$set(this.screenObj, 'wagesMax', '')
					this.$set(this.screenObj, 'wagesMin', '')
				}
			},
			selectLike() {
				if (!this.screenObj.employerIntimacyMax) {
					this.$set(this.screenObj, 'employerIntimacyMax', '0')
					this.$set(this.screenObj, 'employerIntimacyMin', '0')
				} else {
					this.$set(this.screenObj, 'employerIntimacyMax', '')
					this.$set(this.screenObj, 'employerIntimacyMin', '')
				}
			},
			selectTime(id, index) {
				if (this.timeCurrentIndex === index) {
					this.timeCurrentIndex = ''
					this.screenObj.workingHoursMin = ''
					this.screenObj.workingHoursMax = ''
				} else {
					this.timeCurrentIndex = index
					if (id == 0) {
						this.screenObj.workingHoursMin = '1'
						this.screenObj.workingHoursMax = '6'
					} else if (id == 1) {
						this.screenObj.workingHoursMin = '6'
						this.screenObj.workingHoursMax = '24'
					}
				}
			},
			selectGrade(id, index) {
				if (this.gradeCurrentIndex === index) {
					this.gradeCurrentIndex = ''
					this.screenObj.employerLevel = '0'
				} else {
					this.gradeCurrentIndex = index
					this.screenObj.employerLevel = id.toString()
				}
			},
			selectType(id, index) {
				if (this.typeCurrentIndex === index) {
					this.typeCurrentIndex = ''
					this.screenObj.industrialCategory = '0'
				} else {
					this.typeCurrentIndex = index
					this.screenObj.industrialCategory = id.toString()
				}
			},
			reset() {
				this.screenObj = {
					isAsc: 'desc', //排序(asc:正序,desc:倒序))
					region: '', //区域，街道
					taskType: '', //零工类型，0计时，1计件，2计天
					orderByColumn: '', //默认排序，0离我最近，1最新发布，2诚信值降序
					sex: '', //0男,1女，2性别不限
					startReward: '', //起薪
					endReward: '', //上限
					pageNum: 0,
					pageSize: 10,
					status: 3, //上架的工作
					statusIn: '3', //上架的,下架的，待结算
					lat: '',
					lng: '',
					token: '',
					distanceMax: '',
					distanceMin: '',
					wagesMax: '',
					wagesMin: '',
					workingHoursMax: '',
					workingHoursMin: '',
					employerIntimacyMax: '',
					employerIntimacyMin: '',
					employerLevel: '0',
					industrialCategory: '0'
				}
				this.timeCurrentIndex = ''
				this.gradeCurrentIndex = ''
				this.typeCurrentIndex = ''
				this.swiperCurrentIndex = 0
			},
			// 确认设置
			async setting() {
				if (this.timeCurrentIndex === "") {
					this.screenObj.workingHoursMax = ""
					this.screenObj.workingHoursMin = ""
				}
				if (this.gradeCurrentIndex === "") {
					this.screenObj.employerLevel = '0'
				}
				if (this.typeCurrentIndex === "") {
					this.screenObj.industrialCategory = '0'
				}
				let obj = {
					distanceMax: this.screenObj.distanceMax || '',
					distanceMin: this.screenObj.distanceMin || '',
					employerIntimacyMax: this.screenObj.employerIntimacyMax || '',
					employerIntimacyMin: this.screenObj.employerIntimacyMin || '',
					employerLevel: this.screenObj.employerLevel,
					id: uni.getStorageSync('userInfo').id,
					industrialCategory: this.screenObj.industrialCategory,
					userId: uni.getStorageSync('userInfo').userId,
					wagesMax: this.screenObj.wagesMax || '',
					wagesMin: this.screenObj.wagesMin || '',
					workingHoursMax: this.screenObj.workingHoursMax || '',
					workingHoursMin: this.screenObj.workingHoursMin || '',
				}
				this.saveScreenObj = obj
				this.saveTimeCurrentIndex = this.timeCurrentIndex
				this.saveTypeCurrentIndex = this.typeCurrentIndex
				this.saveSwiperCurrentIndex = this.swiperCurrentIndex
				if (obj.distanceMax === '' && obj.distanceMin === '' && obj.employerIntimacyMax === '' && obj
					.employerIntimacyMin === '' && obj.workingHoursMin === '' && obj.workingHoursMax === '' && obj
					.employerLevel === '0' && obj.industrialCategory === '0' && obj.wagesMax == '' && obj.wagesMin ==
					'' && this.swiperCurrentIndex === 0) {
					this.show = false;
					// uni.setStorageSync('queryUserFiltering', this.screenObj)
					// obj = JSON.parse(JSON.stringify(obj))
					// let res = await this.$fetch(this.$api.insert_user_filtering, obj, 'POST', 'JSON')
					this.isScreen = false
				} else {
					// obj = JSON.parse(JSON.stringify(obj))
					// uni.setStorageSync('shaixuan', this.screenObj)
					// uni.setStorageSync('queryUserFiltering', this.screenObj)
					// let res = await this.$fetch(this.$api.insert_user_filtering, obj, 'POST', 'JSON')
					// let resData = await this.$fetch(this.$api.query_user_filtering, 'GET')
					// if (resData.code) return uni.showToast({
					// 	title: resData.msg,
					// 	icon: 'none'
					// })
					// if (resData.msg) {
					// 	uni.setStorageSync('query_user_filtering', resData.data)
					// }
					this.isScreen = true
					this.show = false
					// this.scrollTopHeight = Math.random();
				}
				this.refresh()
			},
			close() {
				this.show = false
				this.screenObj = {
					...this.screenObj,
					...this.saveScreenObj
				}
				this.timeCurrentIndex = this.saveTimeCurrentIndex
				this.typeCurrentIndex = this.saveTypeCurrentIndex
				this.swiperCurrentIndex = this.saveSwiperCurrentIndex
				if (this.timeCurrentIndex === "") {
					this.screenObj.workingHoursMax = ""
					this.screenObj.workingHoursMin = ""
				}
				if (this.gradeCurrentIndex === "") {
					this.screenObj.employerLevel = '0'
				}
				if (this.typeCurrentIndex === "") {
					this.screenObj.industrialCategory = '0'
				}
				let obj = {
					distanceMax: this.screenObj.distanceMax || '',
					distanceMin: this.screenObj.distanceMin || '',
					employerIntimacyMax: this.screenObj.employerIntimacyMax || '',
					employerIntimacyMin: this.screenObj.employerIntimacyMin || '',
					employerLevel: this.screenObj.employerLevel,
					id: uni.getStorageSync('userInfo').id,
					industrialCategory: this.screenObj.industrialCategory,
					userId: uni.getStorageSync('userInfo').userId,
					wagesMax: this.screenObj.wagesMax || '',
					wagesMin: this.screenObj.wagesMin || '',
					workingHoursMax: this.screenObj.workingHoursMax || '',
					workingHoursMin: this.screenObj.workingHoursMin || '',
				}
				if (obj.distanceMax === '' && obj.distanceMin === '' && obj.employerIntimacyMax === '' && obj
					.employerIntimacyMin === '' && obj.workingHoursMin === '' && obj.workingHoursMax === '' && obj
					.employerLevel === '0' && obj.industrialCategory === '0' && obj.wagesMax == '' && obj.wagesMin == '' &&
					this.swiperCurrentIndex === 0) {
					this.isScreen = false
				} else {
					this.isScreen = true
				}
			},
			toEmployer(id) {
				if (uni.getStorageSync('token')) {
					uni.navigateTo({
						url: '/pages/employer-detail/employer-detail?bossId=' + id
					})
				}
			},
			//跳转到我的
			gomy() {
				if (uni.getStorageSync('token')) {
					this.isOpenMenu = true
					setTimeout(() => {
						this.$refs.drawer.showDrawer()
					})
				} else {
					uni.reLaunch({
						url: '/pages/login/login'
					})
				}
			},
			openWorking() {
				this.isShowWorking = true
			},
			closeWorking() {
				this.isShowWorking = false
				this.getUserInfo()
			},
			openDaikgong() {
				this.isShowDaikgong = true
			},
			closeDaikgong() {
				this.isShowDaikgong = false
				this.getUserInfo()
			},
			openFudai() {
				this.isShowFudai = true
				setTimeout(() => {
					this.isShowSmallFudai = false
				}, 10)
			},
			closeFudai() {
				this.isShowFudai = false
			},
			// 计算距离
			getDistance() {
				this.jobList2.forEach(item => {
					var sr = this.distance(item.lat, item.lng)
					this.$set(item, 'jlx', sr)
				})
			},
			distance(lat1, lng1) {
				var that = this;
				let lat2
				let lng2
				// #ifdef APP-PLUS
				lat2 = that.location[0];
				lng2 = that.location[1];
				// #endif
				// #ifdef H5
				lat2 = '29.306207';
				lng2 = '120.106221';
				// #endif
				let rad1 = lat1 * Math.PI / 180.0;
				let rad2 = lat2 * Math.PI / 180.0;
				let a = rad1 - rad2;
				let b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
				let s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(rad1) * Math.cos(rad2) * Math.pow(
					Math.sin(b / 2), 2)));
				s = s * 6378.137;
				s = Math.round(s * 10000) / 10000;
				s = s.toString();
				s = s.substring(0, s.indexOf('.') + 3);
				return s
			},
			async shoudao() {
				let ress = await this.$fetch(this.$api.inv_comp_task_ok, {
					fromId: this.messageObj.fromId
				}, 'POST')
				if (ress.code) return uni.showToast({
					title: ress.msg,
					icon: 'none'
				})
				this.closeFudai()
				uni.removeStorageSync('newInvMsg');
			},
			change(e) {
				this.currents = e.detail.current
			},
			async getUserInfo() {
				let res = await this.$fetch(this.$api.get_current_user, {}, 'GET')
				if (res.code) return;
				if (res.data.payPwdFlag) {
					uni.setStorageSync('isHavePayPassword', true)
				} else {
					uni.setStorageSync('isHavePayPassword', false)
				}
				// if (res.code) return
				if (res.code === 531) {
					uni.navigateTo({
						url: '/pages/riskControl/riskControl',
					})
					return
				}
				this.userJobStatus = res.data.userJobStatus
				if (this.userJobStatus == 0) {
					this.isShowDaikgong = false
					this.isShowWorking = false
				}
				if (this.userJobStatus == 1) {
					this.isShowWorking = true
					this.isShowDaikgong = false
				}
				if (this.userJobStatus == 2) {
					this.isShowDaikgong = false
					this.isShowWorking = false
				}
				if (this.userJobStatus == 3) {
					this.isShowDaikgong = true
					this.isShowWorking = false
				}
			},
			async cesi() {
				let res = await this.$fetch(this.$api.get_receiv_user, {}, 'GET')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			async getConfigBanner(e) {
				this.configBanner = []
				let tempRegion
				// #ifdef H5
				tempRegion = '330782'
				// #endif
				// #ifdef APP-PLUS
				tempRegion = uni.getStorageSync('region1').slice(0, 6)
				// #endif
				let res = await this.$fetch(this.$api.bannerByToken, {
					region: e ? e : tempRegion
				}, 'GET')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				let newList = []
				for (let i = 0; i < res.data.length; i++) {
					let resdate = res.data[i]
					resdate.img = `https://images.linglinggong.net/${resdate.img}`
					newList.push(resdate)
				}
				uni.setStorageSync('configBanner', newList)
				setTimeout(() => {
					this.configBanner = newList
				}, 100)
			},
			isGetBanner() {
				let c = new Date().getDate()
				if (uni.getStorageSync('getBannerTime')) {
					if (c == uni.getStorageSync('getBannerTime')) {
						this.configBanner = uni.getStorageSync('configBanner')
					} else {
						this.getConfigBanner()
					}
				} else {
					this.getConfigBanner()
				}
				uni.setStorageSync('getBannerTime', c)
			},
			tiaozhuan2(act) {
				if (!uni.getStorageSync('token')) {
					uni.navigateTo({
						url: '/pages/login/login'
					})
					return
				}
				if (act != "null") {
					uni.navigateTo({
						url: act
					})
				}
				unit.upd_user_banner(act)
			},
			tiaozhuanXcx(act) {
				if (!uni.getStorageSync('token')) {
					uni.navigateTo({
						url: '/pages/login/login'
					})
					return
				}
				plus.share.getServices(res => {
					let sweixin = null;
					for (let i in res) {
						if (res[i].id == 'weixin') {
							sweixin = res[i];
						}
					}
					//唤醒微信小程序
					if (sweixin) {
						sweixin.launchMiniProgram({
								id: uni.getStorageSync('UUID'),
								type: 0, //小程序版本  0-正式版； 1-测试版； 2-体验版。
								path: act.slice(0) //小程序的页面,用传的参数在小程序接值判断跳转指定页面
							},
							//目标小程序点击返回App后执行的回调,在此接收binderror="launchAppError"的参数
							res => {}, err => {});
					}
				});
			},
			//计算任务人数，报名加邀请的人数
			addTaskNumber(number, invitation) {
				let v = parseInt(number) + parseInt(invitation)
				return v
			},
			//获得元素的size
			getElSize(id) {
				return new Promise((res, rej) => {
					let el = uni.createSelectorQuery().select('#' + id);
					el.fields({
						size: true,
						scrollOffset: true,
						rect: true
					}, (data) => {
						res(data);
					}).exec();
				});
			},
			jumpJobDetail() {
				this.isNewTask = 1
				this.undoneRefresh()
			},
			tiaozhuan(id) {
				if (!uni.getStorageSync('token')) {
					uni.navigateTo({
						url: '/pages/login/login'
					})
					return
				}
				uni.navigateTo({
					url: id
				})
				unit.upd_user_banner(id)
			},
			scrollTop(e) {
				//此处的scrollDic是监听下拉开始到下拉结束手指移动的距离
				this.scrollStart = e.changedTouches[0].pageY
				// 屏幕左滑,侧边菜单
				this.startTime = Date.now()
				this.startPosition = e.changedTouches[0].clientX
			},
			topSwiperTab(e) {
				var that = this;
				this.topSwiperIndex = Number(e.target.current);
			},
			scrollTop2(e) {
				this.scrollEnd = e.changedTouches[0].pageY
				this.distantce = this.scrollEnd - this.scrollStart
				// 左滑菜单
				const endTime = Date.now()
				if (endTime - this.startTime > 2000) {
					return;
				}
				this.endPosition = e.changedTouches[0].clientX;
				var slideDistance = this.endPosition - this.startPosition;
				if (e.changedTouches[0].clientY > 120 && e.changedTouches[0].clientX < 120 && slideDistance > 50) {
					this.isOpenMenu = true
					setTimeout(() => {
						this.$refs.drawer.showDrawer()
					})
				}
				if (slideDistance < -50) {
					if (this.isOpenMenu) {
						this.$refs.drawer.hiddenDrawer()
					}
				}
			},
			hideModal() {
				this.screenFlag = false
			},
			hideModals() {
				this.screenFlags = false
			},
			//关闭筛选框
			handleCloseMask() {
				this.screenFlag = false
			},
			// 遮罩层下不滚动
			moveHandle() {
				return
			},
			// 由省市区筛选 获取区行政代码
			getAreaCode(areaCode) {
				this.isrefresher = true
				this.screenObj = this.screenObj
				this.screenObj.region = areaCode
				this.getMyStreet()
				this.refresh()
				// 改变雇员端筛选地区，因为省市区通用
				let usersObj = uni.getStorageSync('usersObj') ? uni.getStorageSync('usersObj') : {}
				usersObj.region = areaCode
				uni.setStorageSync('usersObj', usersObj)
				console.log(areaCode, 555)
				this.getConfigBanner(areaCode)
				setTimeout(() => {
					this.isrefresher = false
				}, 1000)
			},
			// 刷新
			refresh() {
				clearInterval(this.shuangyueTime)
				if (!this.flagOpen) return
				this.flagOpen = false
				setTimeout(() => {
					this.flagOpen = true
				}, 500)
				this.screenObj.pageNum = 0
				this.screenObj.pageSize = 10
				this.hasFlag = true
				this.jobList = []
				this.jobList2 = []
				this.task_list(0)
				if (uni.getStorageSync('token')) {
					setInterval(() => {
						this.refreshLocation()
					}, 120000)
				}
				this.hasFlag2 = false
				this.bust()
				this.userInfo = uni.getStorageSync('userInfo')
				// this.getNew_people_share_rewards()
				this.region1 = uni.getStorageSync("region1")
			},
			// 选择零工类型
			handleChooseJobType(flag) {
				if (flag !== '') {
					this.dingD1 = true
				} else {
					this.dingD1 = false
				}
				this.screenObj = uni.getStorageSync('screenObj').region ? uni.getStorageSync('screenObj') : this.screenObj
				this.screenFlag = false
				if (this.screenObj.taskType === flag) return
				this.screenObj.taskType = flag === '' ? '' : flag
				this.refresh()
			},
			// 选择默认排序 类型
			handleChooseDefault(flag) {
				if (flag == 0) {
					this.dingD2 = false
				} else {
					this.dingD2 = true
				}
				this.screenObj = uni.getStorageSync('screenObj').region ? uni.getStorageSync('screenObj') : this.screenObj
				this.screenFlag = false
				if (this.screenObj.orderByColumn === flag) return
				this.screenObj.orderByColumn = flag ? flag : ''
				if (flag == 'distance') { //
					this.screenObj.isAsc = 'asc'
				} else if (flag == 'createTime') {
					this.screenObj.isAsc = 'desc'
				} else if (flag == 'integrity') {
					this.screenObj.isAsc = 'desc'
				} else {
					this.screenObj.isAsc = 'desc'
				}
				this.refresh()
			},
			// 选择性别
			handleChooseSex(flag) {
				this.comfirmObj.sex = flag
			},
			// 筛选完成
			handleComfirm() {
				this.screenObj = uni.getStorageSync('screenObj').region ? uni.getStorageSync('screenObj') : this.screenObj
				this.screenObj.sex = this.comfirmObj.sex == 2 ? '' : this.comfirmObj.sex
				this.screenObj.startReward = this.comfirmObj.startReward
				this.screenObj.endReward = this.comfirmObj.endReward
				this.refresh()
				this.screenFlag = false
				this.dingD3 = true
				/* console.log(this.comfirmObj) */
			},
			// 重置
			handleClear() {
				this.dingD3 = false
				this.comfirmObj = {
					sex: '',
					startReward: '', //起薪
					endReward: '', //上限
				}
				this.screenObj.sex = this.comfirmObj.sex
				this.screenObj.startReward = this.comfirmObj.startReward
				this.screenObj.endReward = this.comfirmObj.endReward
				this.refresh()
			},
			async query_user_filtering() {
				let res = await this.$fetch(this.$api.query_user_filtering, 'GET')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				if (res.msg) {
					uni.setStorageSync('query_user_filtering', res.data)
				}
			},
			// 获取工作列表
			async task_list(val) {
				this.isProhibit = true
				this.showTip = false
				if (!this.hasFlag) {
					this.isProhibit = false
					return
				} // 说明已经没有更多啦
				// 解决下拉刷新会触发上拉加载
				if (val == 0) {
					this.canLoding = false
					setTimeout(() => {
						this.canLoding = true
					}, 1000)
					this.screenObj.pageNum = 1;
					this.scrollTopHeight = Math.random();
				} else {
					if (this.canLoding) {
						++this.screenObj.pageNum
					}
				}
				console.log('screenObj.pageNum', this.screenObj.pageNum)
				this.screenObj.lat = uni.getStorageSync('taskListLocation')[0]
				this.screenObj.lng = uni.getStorageSync('taskListLocation')[1]
				// this.screenObj.name = this.word
				this.screenObj.status = 3
				this.screenObj.statusIn = '3'
				// 以工作开始时间为顺序
				if (!this.screenObj.orderByColumn) {
					this.screenObj.orderByColumn = 'startTime'
					this.screenObj.isAsc = 'asc'
				}
				// 如果没有定位默认义乌
				if (this.screenObj.region == '') {
					if (uni.getStorageSync('region2')) {
						if (this.$store.state.selectCity === "义乌市") {
							this.screenObj.region = '330782'
						} else {
							this.screenObj.region = uni.getStorageSync('region2').slice(0, 6)
						}
					} else {
						if (uni.getStorageSync('region')) {
							this.screenObj.region = uni.getStorageSync('region').slice(0, 6)
						} else {
							this.screenObj.region = '330782'
						}
					}
				}
				let places = placeMap()
				this.getMyStreet()
				this.screenObj.region = Object.keys(this.street)[this.swiperCurrentIndex]
				if (uni.getStorageSync('userId')) {
					this.screenObj.token = uni.getStorageSync('userId')
					this.screenObj.userId = uni.getStorageSync('userId')
				} else {
					this.screenObj.token = ''
					this.screenObj.userId = ''
				}
				let res = await this.$fetch(this.$api.task_list_v2, this.screenObj, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				this.isProhibit = false
				res.rows.forEach(item => {
					if (item.address.length != 0 || item.address.indexOf('·') != -1) {
						item.address = item.address.split('·')
						item.address = item.address[1]
					}
					if (item.vipFlag == 1 && !item.vipflagdate) {
						let Time = new Date(item.vipflagdate.replace(/-/g, '/'));
						let timestemp = parseFloat(Time.getTime()) //开工时间
						let timestempday = parseFloat((new Date()).getTime()); //当前时间
						var xjian = parseFloat((timestemp - timestempday))
						item.jiacheTimess = xjian
						if (xjian > 0) {
							item.jiacheTimes = this.formatDuring(xjian)
						} else {
							item.jiacheTimes = ''
						}
					}
					// 工作时长
					item.workTime = this.calcWorkTime(item.startTime, item.endTime)
					let lenT = String(item.workTime).length
					item.workTime = lenT > 4 ? item.workTime.toFixed(1) : item.workTime
					// 是否是明天
					item.tomorrow = item.startTime.slice(0, 10) == this.tomorrow ? true : false
					// 将金额除以100，单位变为元
					item.floorsAmount = item.floorsAmount.divide(100)
					item.reward = item.reward.divide(100)
					item.subsidy = item.subsidy.divide(100)
					item.integrity = parseFloat(item.integrity).divide(100)
				})
				if (this.screenObj.pageNum == 1) {
					this.jobList = []
					this.jobList2 = []
				}
				if (res.rows.length > 0) {
					if (res.rows.length < 10) {
						this.hasFlag = false
					} else {
						this.hasFlag = true
					}
					this.hasFlag2 = false
					this.jobList = [...this.jobList, ...res.rows]
					this.jobList2 = [...this.jobList2, ...res.rows]
					this.Mengban()
				} else {
					this.hasFlag = false
					if (this.jobList2.length == 0) {
						setTimeout(() => {
							this.hasFlag2 = true
						}, 100)
					}
				}
				if (this.jobList.length == res.total && this.screenObj.pageSize >= res.rows.length) {
					this.hasFlag = false
				} else {
					this.hasFlag = true
				}
				if (res.rows.length == 0) {
					this.hasFlag = false
				}
			},
			formatDuring(mss) {
				var days = parseInt(mss / (1000 * 60 * 60 * 24));
				var hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
				var minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60));
				var seconds = (mss % (1000 * 60)) / 1000;
				if (hours < 10) {
					hours = "0" + hours
				}
				if (minutes < 10) {
					minutes = "0" + minutes
				}
				if (seconds < 10) {
					seconds = "0" + seconds
				}
				return hours + ":" + minutes + ":" + seconds;
			},
			bust() {
				if (this.timer == 0) {
					this.timer = setInterval(() => {
						this.jobList2.forEach(item => {
							if (item.vipFlag == 1 && item.vipflagdate != null) {
								item.jiacheTimess = item.jiacheTimess - 1000
								item.jiacheTimes = this.formatDuring(item.jiacheTimess)
							}
						})
					}, 1000)
				}
				if (uni.getStorageSync('token')) {
					this.timeStart()
				}
			},
			// 计算工作时长
			calcWorkTime(start, end) {
				let startT = start.replace(/-/g, '/')
				let endT = end.replace(/-/g, '/')
				startT = new Date(startT).getTime()
				endT = new Date(endT).getTime()
				let differenceT = (endT - startT) / (1000 * 60 * 60) //小时
				return differenceT
			},
			// 获取今天日期
			getToday() {
				var day_0 = new Date();
				day_0.setDate(day_0.getDate());
				this.toDay = this.formatDate(day_0)
				//明天的时间
				var day_1 = new Date();
				day_1.setDate(day_1.getDate() + 1);
				this.tomorrow = this.formatDate(day_1)
			},
			formatDate(date) {
				var d = date,
					month = '' + (d.getMonth() + 1),
					day = '' + d.getDate(),
					year = d.getFullYear();
				if (month.length < 2) month = '0' + month;
				if (day.length < 2) day = '0' + day;
				return [year, month, day].join('-');
			},
			shaixuClick(type) {
				if (type == 2) {
					this.isXinshou = 'none'
					this.autoplay = true
					uni.setStorageSync('xinshouShaixuan', true)
				} else {
					this.isXinshou = 'none'
					this.autoplay = true
					uni.setStorageSync('xinshouShaixuan', true)
					this.handleTabChange({
						detail: {
							current: 3
						}
					})
				}
			},
			// 更改类目
			handleTabChange({
				detail: {
					current
				}
			}) {
				this.selectTab = current
				this.screenFlag = !this.screenFlag
			},
			// 地图
			handleMap() {
				uni.navigateTo({
					url: '/pages/map-look-for/map-look-for',
					animationType: "none"
				})
			},
			// 打开工作详情
			handleOpenJobDetail(taskId, applyNum, invitation, number, l, t) {
				if (this.isShowPw) {
					this.$emit('toParents')
					return
				}
				if (taskId == 1) return uni.showToast({
					title: '已满员，去看看其他零工吧！',
					icon: 'none'
				})
				if (applyNum >= number) return uni.showToast({
					title: '已满员，去看看其他零工吧！',
					icon: 'none'
				})
				if (this.addTaskNumber(applyNum, invitation) >= number) return uni.showToast({
					title: '邀请中,请稍后再试~',
					icon: 'none'
				})
				if (!this.flagOpen) return
				this.flagOpen = false
				setTimeout(() => {
					this.flagOpen = true
				}, 500)
				if (this.userToken !== '') {
					if (taskId) {
						uni.navigateTo({
							url: '/pages/job-detail/job-detail?taskId=' + taskId
						})
					}
				} else {
					uni.reLaunch({
						url: '/pages/login/login'
					})
				}
			},
			// 获取街道
			getMyStreet() {
				let areaCode = this.areaCode ? this.areaCode : this.screenObj.region.slice(0, 6) //主意是6位数
				// let areaCode = '330782'
				let allStreet = uni.getStorageSync('street')
				let obj = {}
				obj[`${this.screenObj.region.slice(0, 6)}`] = '全部'
				for (let key in allStreet) {
					if (key.indexOf(areaCode) !== -1) {
						obj[key] = allStreet[key]
					}
				}
				this.street = obj
			},
			getConfirmInvitation() {
				uni.$emit('ShowStaff')
				if (this.ConfirmInvitationId.length != 0) {
					if (this.yaoqing_type == 7) {
						uni.navigateTo({
							url: '/pages/order-detail/order-detail?id=' + this.ConfirmInvitationId[0].orderId
						})
					} else if (this.yaoqing_type == 1) {
						uni.navigateTo({
							url: '/pages/job-detail/job-detail?taskId=' + this.ConfirmInvitationId[0].orderTaskId
						})
					}
				}
			},
			//邀请倒计时 or 带同意接单
			invitationCountDown(time, id, type) {
				if (!time) {
					this.countDown = ''
					clearInterval(this.yq_timer)
					return;
				}
				let date = new Date(time.replace(/-/g, '/'))
				let time1 = Date.parse(date) / 1000
				let time2 = time1 + (type == 1 ? 480 : type == 7 ? 900 : 0)
				let time3 = Date.parse(new Date()) / 1000
				let time4 = (time2 - time3)
				let time5 = ''
				this.yaoqing_type = type
				if (this.yq_timer == 0) {
					this.yq_timer = setInterval(() => {
						time4 = time4 - 1
						time5 = ((Math.floor(time4 / 60 % 60) < 10 ? '0' + Math.floor(time4 / 60 % 60) : Math
							.floor(time4 / 60 % 60)) + ':' + (Math.floor(time4 % 60) < 10 ? '0' + Math
							.floor(time4 % 60) : Math.floor(time4 % 60)))
						if ((Math.floor(time4 / 60 % 60)) <= 0 && (Math.floor(time4 % 60)) <= 0) {
							clearInterval(this.yq_timer)
							this.countDown = ''
							if (type == 7) {
								this.refuseInvite(id)
							} else if (type == 1) {
								this.refuseApply_check(id)
							}
							return
						}
						this.countDown = time5
					}, 1000)
				}
				return ' '
			},
			//拒绝邀请
			async refuseInvite(orderId) {
				let res = await this.$fetch(this.$api.order_user_refuse_invite, {
					orderId: orderId
				}, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			//拒绝订单
			async refuseApply_check(orderId) {
				let res = await this.$fetch(this.$api.apply_check, {
					orderId: orderId,
					checkStatus: 0
				}, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			getNew_people_share_rewards(New_people_share_rewards) {
				if (this.userInfo.receivenumstatus == 0) {
					try {
						New_people_share_rewards.dangqiangongshi = this.getJinduNum(New_people_share_rewards.number,
							New_people_share_rewards.tixianguizhe, New_people_share_rewards.jiefengguizhe.split(','))
						this.getJinduNumRpx(New_people_share_rewards.dangqiangongshi, New_people_share_rewards
							.jiefengguizhe.split(',')[New_people_share_rewards.number])
						this.New_people_share_rewards_obj = New_people_share_rewards
						if ((this.New_people_share_rewards_obj.jiefengguizhe.split(',')[this.New_people_share_rewards_obj
								.number] <= this.New_people_share_rewards_obj.dangqiangongshi && uni.getStorageSync(
								'jiesuoFlag') != false)) {
							uni.setStorageSync('jiesuoFlag', true)
						} else if ((this.New_people_share_rewards_obj.jiefengguizhe.split(',')[this
									.New_people_share_rewards_obj.number] > this.New_people_share_rewards_obj
								.dangqiangongshi && uni.getStorageSync('jiesuoFlag') != '')) {
							try {
								uni.removeStorageSync('jiesuoFlag');
							} catch (e) {
								// error
							}
						}
					} catch (e) {
						//TODO handle the exception
					}
				}
			},
			getJinduNum(jieduan, gongshi, jieudanlist) {
				jieudanlist.forEach((v, index) => {
					if (index < jieduan) {
						gongshi = gongshi - v
					}
				})
				return Math.round(gongshi * 100) / 100
			},
			getJinduNumRpx(dqian_gongshi, xyao_gongshi) {
				this.jindu_num = (dqian_gongshi / xyao_gongshi) * 112
			},
			//去新手雇员
			gotoxinrenPage() {
				uni.navigateTo({
					url: '/pages/newStaff/newStaffRedEnvelope'
				})
			},
			closeZuliAlert() {
				if (this.isShowZuliAlert == false) {
					this.isShowZuliAlert = uni.getStorageSync('str') == 1 ? true : false
				} else {
					this.isShowZuliAlert = false
					if (uni.getStorageSync('str') != '') {
						uni.setStorageSync('str', -1)
					}
				}
			},
			changeTask(index) {
				if (index == 1 && !uni.getStorageSync('token')) {
					uni.navigateTo({
						url: `/pages/login/login`
					})
					return
				}
				this.showTip = false
				this.isNewTask = index;
				!this.isNewTask ? this.refresh() : this.undoneRefresh()
				// }
			},
			// 进行中方法
			undoneRefresh() {
				this.undoneHasFlag = true
				this.undoneJobList = []
				this.requestObj.pageNum = 0
				this.requestObj.pageSize = 10
				if (this.isNewTask == 1) {
					this.order_list()
				}
			},
			handleDeleteLine(orderId, status) {
				this.delOrderId = orderId
				if (status == 0) {
					this.confirm()
				} else {
					this.show2 = true
				}
			},
			async getLocatime() {
				if (!uni.getStorageSync('token')) return
				let res = await this.$fetch(this.$api.get_locatime, {}, 'GET')
				this.nowTime = res.data
				let day_0 = new Date(this.nowTime);
				day_0.setDate(day_0.getDate());
				this.undoneToDay = day_0.format("yyyy-MM-dd hh:mm:ss")
			},
			deletMessageLine(orderId) {
				this.undoneRefresh()
				// this.show1 = false
			},
			async confirm() {
				let res = await this.$fetch(this.$api.order_list_delete, {
					orderId: this.delOrderId
				}, 'DELETE')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				this.undoneRefresh()
				this.delOrderId = ''
				// this.show1 = false
				this.show2 = false
			},
			cancel() {
				// this.undoneRefresh()
				// this.show1 = true
				this.show2 = false
			},
			//获取展示定位地址
			getShowAdd(add) {
				add = add.split('·')
				return add.splice(0, 2).join('·')
			},
			onShowToop(e) {
				this.nowId = e
				this.showTip = !this.showTip
			},
			//打开弹框isEmployeeEvaluate
			async handleOpenModal(button, status, orderId, taskType, reward, startTime, taskStartTime, taskEndTime,
				levelsd, floorsstr, floorsAmount, isExpel, createBy, bossPhoto, item, l) {
				this.refreshLocation()
				if (this.timerId) {
					uni.showLoading({
						title: '太快了,稍后再操作吧!',
						icon: 'none'
					});
					return
				} //判断定时器是否存在，如果存在直接跳出函数不执行下面代码
				//定时器时间到了的时候清楚定时器并且把赋值的变量清空
				this.timerId = setTimeout(() => {
					clearTimeout(this.timerId);
					uni.hideLoading()
					this.timerId = null;
				}, 2000)
				this.orderId = orderId
				this.button = button
				this.clickStatus = status
				this.jobType = taskType
				this.income_reward = reward / 100
				if (status != 5) {
					this.isShowModal = true
					if (button == 1 && status == 7) { //同意
						this.getData()
						this.modalStytle = 0
						this.titleContect = '确认订单'
						this.middleContext = '接单成功后，如果取消订单，会导致' + this.sealDay + '天不可再次接单。'
						this.leftContext = '取消'
						this.rightContext = '确认'
					} else if (button == 0 && status == 7) { //拒绝
						this.modalStytle = 3
						this.titleContect = '拒绝邀请'
						this.middleContext = '是否拒绝邀请'
						this.leftContext = '取消'
						this.rightContext = '确认'
					} else if (button == 1 && status == 2) { //开工
						if (item.isCheck == 1) {
							this.handleOpenPage(item.id)
							this.isShowModal = false
							return
						}
						this.modalStytle = 3
						this.titleContect = '确认订单'
						this.middleContext = '是否开工'
						this.leftContext = '取消'
						this.rightContext = '确认'
					} else if (button == 0 && status != 7 && status != 1 && isExpel != true) { //所有取消 除了1
						this.isShowModal = false
						this.isShowSealAlert = true
					} else if (button == 0 && status != 7 && status != 1 && isExpel == true) { //辞工
						// this.getData()
						this.modalStytle = 98
						this.titleContect = '辞工'
						this.middleContext = '你将无责辞工，#但不会被结算工资，请谨慎处理#'
						this.leftContext = '取消'
						this.rightContext = '确认'
						this.contentColor = '#787878'
						this.contentsColor = '#FE4B28'
					} else if (button == 1 && status == 3) { //收工
						this.isShowModal = false
						this.undoneGetToday() //计算工作时间
						let res = await this.$fetch(this.$api.check_closing_cycle, {
							orderId: orderId
						}, 'GET')
						if (res.data) {
							this.isShowModal = false
							this.isShouGong = false
							//计件收工
							if (taskType == 1) {
								this.isShowIncome = true
								this.income_reward = reward / 100
								if (floorsstr == 1) {
									this.is_baodi_work = true
									let start = new Date(startTime.replace(/-/g, '/'))
									let end = this.nowTime
									let diff = end - start.getTime();
									let sec = diff / 1000 / 60 / 60;
									this.baodi_reward = Math.floor((floorsAmount / 100) * sec * 100) / 100
									// console.log('dsadsadsa', this.baodi_reward)
								} else {
									this.isShowModal = true
									this.is_baodi_work = false
									this.baodi_reward = 0
									this.isShowBaodi_reward = false
								}
								//计时收工
							} else {
								this.isShowModal = true
								this.modalStytle = 1
								this.calWorkTime(startTime) //计时工作时间
								this.workPrice = reward.divide(100) //工作单价
							}
							if (levelsd == 2) { //判断是否二级雇主
								if (taskEndTime > this.undoneToDay) { //结束时间大于当前时间
									this.jobleve = 1
								}
							}
							this.titleContect = '确认收工'
							this.leftContext = '取消'
							this.rightContext = '确认'
						} else if (!res.data) {
							this.isShowModal = false
							this.isShouGong = true
						}
					} else if (button == 0 && status == 1) {
						this.isShowModal = true
						/* console.log('取消订单') */
						this.modalStytle = 3
						this.titleContect = '取消订单'
						this.middleContext = this.quxiaoFlag == 1 ? '订单取消后无法重复报名，确认取消吗？' : this.quxiaoFlag == 2 ?
							'订单取消次数将达上限，确认取消吗？' : '订单取消次数已达上限，确认取消吗？'
						this.leftContext = '取消'
						this.rightContext = '确认'
					} else if (button == 1 && status == 1) {
						this.isShowModal = true
						this.currentTaskReceived = [item.isConfirm, item.isOldStaff, item.disturbstatus, item
							.telephone,
							orderId, item.taskId
						]
						this.modalStytle = 3
						this.titleContect = '确认订单'
						this.middleContext = item.isOldStaff || item.disturbstatus == 1 ? '是否直接接单' : !item.isConfirm ?
							'是否拨打电话' : '是否确认接单'
						this.leftContext = '取消'
						this.rightContext = '确认'
					}
					//this.isShowModal = true
				} else {
					let imPath = uni.getStorageSync('imgPath')
					let res = await this.$fetch(this.$api.order_detail, {
						orderId: orderId
					}, 'POST')
					setTimeout(() => {
						this.pj_user_list = [res.data.taskUser.updateBy,
							imPath + bossPhoto, orderId, 1,
							item
						]
						this.isShowpingjia = true
					}, 100)
				}
			},
			//今天的时间
			undoneGetToday() {
				this.getLocatime()
			},
			//计算工作时间
			calWorkTime(startTime) {
				let Time = new Date(startTime.replace(/-/g, '/'));
				let timestemp = Time.getTime(); //开工时间
				let Timeday = new Date(this.undoneToDay.replace(/-/g, '/'));
				let timestempday = Timeday.getTime(); //当前时间
				let xjian = (timestempday - timestemp) / 1000 / 60
				this.workTime = xjian.toFixed(2)
			},
			//弹框左键
			handleLeft() {
				this.isShowModal = false
				if (this.button == 1 && this.clickStatus == 5) { //休息
					/* 	console.log('休息') */
					uni.switchTab({
						url: '/pages/tabBar-2/tabBar-2'
					})
				}
				this.$store.commit('isFinishModalChange', false)
			},
			// 获取用户输入的件数
			handleInput() {
				if (this.count > 100000) {
					uni.showToast({
						title: '最大件数不能大于10万件哦',
						icon: 'none'
					})
					this.$nextTick(function() {
						this.count = 100000
					})
				} else {
					this.count ? this.income_money = Math.floor((parseFloat(this.count) * parseFloat(this.income_reward)) *
						100) / 100 : 0
					if (this.is_baodi_work) {
						this.isShowBaodi_reward = this.baodi_reward > this.income_money
					}
				}
			},
			// 获取用户当前的经纬度并且开工
			async getLocationAndWork() {
				let resObj = await this.$fetch(this.$api.order_user_start_worker, {
					orderId: this.orderId,
					lat: uni.getStorageSync('taskListLocation')[0],
					lng: uni.getStorageSync('taskListLocation')[1],
					file: this.qiniuyunFile
				}, 'POST')
				if (this.isFace === '1') {
					uni.hideLoading()
					if (resObj.code) {
						if (resObj.code == -99) {
							this.$store.commit('changeKaigongCode', -99)
						} else {
							uni.showToast({
								title: resObj.msg,
								icon: 'none'
							})
						}
						if (![-90, -99].includes(resObj.code)) {
							setTimeout(() => {
								uni.switchTab({
									url: `/pages/index/index`
								})
							}, 500)
						}
						return;
					}
					setTimeout(() => {
						uni.switchTab({
							url: `/pages/index/index`
						})
					}, 500)
				} else {
					if (resObj.code) {
						uni.showToast({
							title: resObj.msg,
							icon: 'none'
						})
						resolve(false);
						return;
					}
				}
				uni.setStorageSync('receivedTaskStartTime', '')
			},
			// 刷新列表重置定位缓存
			refreshLocation() {
				uni.getLocation({
					type: 'gcj02',
					success: (res) => {
						uni.setStorageSync('taskListLocation', [res.latitude, res.longitude]);
					},
				})
			},
			//弹框右键
			async handleRight(status) {
				this.refreshLocation()
				this.isShouGong = false
				if (status == 0) {
					//强制收工,扣积分
					let resData = await this.$fetch(`${this.$api.confirm_closing_cycle}?orderId=${this.orderId}`, {},
						'GET')
					if (resData.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
				}
				this.isShowModal = false
				uni.setStorageSync('shuaxin', true)
				if (this.button == 0 && this.clickStatus == 7) { //拒绝
					let res = await this.$fetch(this.$api.order_user_refuse_invite, {
						orderId: this.orderId
					}, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					uni.$emit('closeWorking', {})
					uni.$emit('closeDaikgong', {})
				} else if (this.button == 0 && this.clickStatus != 7 && this.clickStatus != 1) { //取消
					let res = await this.$fetch(this.$api.order_user_cancel, {
						orderId: this.orderId
					}, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					uni.$emit('closeWorking', {})
					uni.$emit('closeDaikgong', {})
					if (uni.getStorageSync('checked1')) {
						Voice("您的任务已取消")
					}
					uni.setStorageSync('receivedTaskStartTime', '')
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/cancellationOrder/cancellationOrder?orderId=' + this.orderId
						})
					}, 800)
					this.isShowSealAlert = false
				} else if (this.button == 1 && this.clickStatus == 2) { //开工
					if (this.isFace === '1') {
						if (!uni.getStorageSync('isFirstFace')) {
							uni.navigateTo({
								url: '/pages/clock/clock',
							})
							uni.setStorageSync('isFirstFace', true)
						} else {
							uni.navigateTo({
								url: `/pages/clock/face/face?orderId=${this.orderId}`
							})
						}
					} else {
						await this.getLocationAndWork();
						uni.$emit('openWorking', {})
						uni.$emit('closeDaikgong', {})
					}
				} else if (this.button == 1 && this.clickStatus == 3) { //收工
					if (this.jobType == 1) {
						this.isShowIncome = true
						if (this.jobType == 1 && this.count == 0) return uni.showToast({
							title: '请输入件数~',
							icon: 'none'
						})
					}
					let res = await this.$fetch(this.$api.order_user_end, {
						orderId: this.orderId,
						status: 1,
						count: parseInt(this.count)
					}, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					uni.$emit('closeWorking', {})
					uni.$emit('closeDaikgong', {})
					//请与雇主当面收工，结算工资后，再离开现场。
					if (uni.getStorageSync('checked1')) {
						Voice("您已收工，结算工资后再离开现场")
					}
				} else if (this.button == 1 && this.clickStatus == 7) { //同意
					let res = await this.$fetch(this.$api.order_user_confirm_invite, {
						orderId: this.orderId
					}, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					uni.$emit('openDaikgong', {})
					uni.$emit('closeWorking', {})
				} else if (this.button == 1 && this.clickStatus == 5) { //继续接单
					this.$store.commit('isFinishModalChange', false)
					uni.switchTab({
						url: '/pages/index/index'
					})
				} else if (this.clickStatus == 1) { //取消订单或者确认订单
					this.currentTaskReceived[1] = false
					let checkStatus = this.button == 1 ? 2 : 0
					if (checkStatus == 0) {
						this.quxiaoFlag++
						uni.setStorageSync('quxiaoFlag', [uni.getStorageSync('date'), this.quxiaoFlag])
					}
					if (checkStatus == 0 || this.currentTaskReceived[0] || this.currentTaskReceived[1] || this
						.currentTaskReceived[2] == 1) {
						let res = await this.$fetch(this.$api.apply_check, {
							orderId: this.orderId,
							checkStatus: checkStatus
						}, 'POST')
						if (res.code) return uni.showToast({
							title: res.msg,
							icon: 'none'
						})
						uni.setStorageSync('hasUnconfirm', 0)
						if (checkStatus == 0) {
							uni.navigateTo({
								url: '/pages/cancellationOrder/cancellationOrder?orderId=' + this.orderId
							})
						}
						/* 	console.log('获取接单语音提醒状态~~~~~我的零工页——取消或确认订单',uni.getStorageSync('hasUnconfirm')) */
					} else if (!this.currentTaskReceived[0]) {
						this.currentTaskReceived[0] = true
						let receivedInfoList = uni.getStorageSync('ReceivedInfo') ? uni.getStorageSync(
							'ReceivedInfo') : []
						if (receivedInfoList.length > 0) {
							receivedInfoList.forEach((v, index) => {
								if (v[0] == this.currentTaskReceived[5]) {
									receivedInfoList[index][1] = true
								}
							})
							uni.setStorageSync('ReceivedInfo', receivedInfoList)
						}
						this.phone_bind_middle_number(this.currentTaskReceived[3], this.currentTaskReceived[4])
					} else {
						uni.showToast({
							title: 'error',
							icon: 'none'
						})
					}
				}
				this.undoneRefresh()
			},
			//获取虚拟电话
			async phone_bind_middle_number(telephone, id) {
				let res = await this.$fetch(this.$api.phone_bind_middle_number, {
					phone: telephone,
					orderId: id
				}, 'POST', 'form')
				let phoneNumber
				if (res.code != '500') {
					phoneNumber = (res.data.middleNumber && res.data.overTime != '1000') ? res.data.middleNumber :
						telephone
				} else {
					phoneNumber = telephone
				}
				phoneLimite(phoneNumber)
			},
			// 更改类目
			handleTabChange({
				detail: {
					current
				}
			}) {
				if (this.undoneSelectTab === current) return
				this.undoneSelectTab = current
				switch (this.undoneSelectTab) {
					case 1:
						this.requestObj.status = 7;
						break;
					case 2:
						this.requestObj.status = 2;
						break;
					case 3:
						this.requestObj.status = 3;
						break;
					case 4:
						this.requestObj.status = 5;
						break;
					default:
						this.requestObj.status = ''
						break;
				}
				this.undoneRefresh()
			},
			//打开订单详情页
			async onCigong(id) {
				uni.navigateTo({
					url: '/pages/ciGong/ciGong?orderId=' + id
				})
			},
			//获取我的零工
			//获取进行中任务列表
			async order_list() {
				if (!this.undoneHasFlag) return // 说明已经没有更多啦

				++this.requestObj.pageNum
				// 是否允许切换，
				if (!this.undoneHandleIsStop) return uni.showToast({
					title: '你点击得太快啦~',
					icon: 'none'
				}) // 说明上一条请求结果未返回
				this.undoneHandleIsStop = false
				let res = await this.$fetch(this.$api.order_list, this.requestObj, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				if (res.total < 1) {
					this.isUndoneList = false
				} else {
					this.isUndoneList = true
				}
				let receivedInfoList = uni.getStorageSync('ReceivedInfo') ? uni.getStorageSync('ReceivedInfo') : []
				// 将金额除以100，单位变为元
				res.rows.forEach(item => {
					item.rewardY = item.reward.divide(100)
					item.subsidyY = item.subsidy.divide(100)
					item.floorsAmountY = item.floorsAmount.divide(100)
					//startTime 工作开始时间 status 进行中
					if (item.status == 3) {
						item.isExpel = this.expel_time > (isResidueTimeByMinute(item.startTime, this.nowTime) *
							-1)
					}
					if (item.status == 1 && receivedInfoList.length > 0) {
						receivedInfoList.forEach(v => {
							if (v[0] == item.taskId) {
								if (this.currentTaskReceived.length != 0) {
									item.isConfirm = this.currentTaskReceived[5] == item.taskId ? this
										.currentTaskReceived[0] : v[1]
								} else {
									item.isConfirm = v[1]
								}
								item.isOldStaff = v[2]
							}
						})
					}
				})
				// 是否允许切换
				this.undoneHandleIsStop = true
				this.undoneJobList = [...this.undoneJobList, ...res.rows]
				this.undoneHasFlag = this.requestObj.pageSize * this.requestObj.pageNum < res.total
				this.isShowWorking = this.undoneJobList.some(item => {
					return item.status === 3
				})
				this.isShowDaikgong = this.undoneJobList.some(item => {
					return item.status === 2
				})
			},
			// 配置数据
			getData() {
				// 雇员取消x小时内不可接单
				uni.setStorageSync('x_hours_no_order', uni.getStorageSync('property_list_by_type').x_hours_no_order)
				// 雇员取消订单扣除诚信值
				uni.setStorageSync('order_user_cancel_cut_integrity', uni.getStorageSync('property_list_by_type')
					.order_user_cancel_cut_integrity)
				// 雇主取消任务扣除诚信值
				uni.setStorageSync('task_user_cancel_cut_integrity', uni.getStorageSync('property_list_by_type')
					.task_user_cancel_cut_integrity)
				this.order_user_cancel_cut_integrity = uni.getStorageSync('order_user_cancel_cut_integrity')
				this.x_hours_no_order = uni.getStorageSync('x_hours_no_order')
			},
			// 获取我的零工（雇员）
			async order_list_voice() {
				let requestObj = {
					pageNum: 1,
					pageSize: 5,
					status: '1',
					statusIn: '',
					taskId: '',
				}
				let res = await this.$fetch(this.$api.order_list, requestObj, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				if (res.total == 0) {
					uni.setStorageSync('hasUnconfirm', 0)
				}
			},
			//拒绝邀请
			async refuseInvite(orderId) {
				let res = await this.$fetch(this.$api.order_user_refuse_invite, {
					orderId: orderId
				}, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			//取消订单
			async quxiaoDingdan(orderId) {
				let res = await this.$fetch(this.$api.apply_check, {
					orderId: orderId,
					checkStatus: 0
				}, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			//判断实行什么方法
			estimateExecute(status, orderId) {
				switch (status) {
					case 1:
						this.quxiaoDingdan(orderId)
						break;
					case 2:
						this.refuseInvite(orderId)
						break;
					default:
						break;
				}
			},
			income_click() {
				if (!this.count || this.count[0] == '0') {
					uni.showToast({
						title: '请正确输入件数后点击确认',
						icon: 'none'
					})
				} else {
					this.handleRight()
					this.close_ShowIncome()
				}
			},
			close_ShowIncome() {
				this.isShowIncome = false
				this.count = ''
				this.baodi_reward = 0
				this.isShowBaodi_reward = false
				this.income_money = 0
			},
			closePj() {
				this.isShowpingjia = false
				this.undoneRefresh()
			}
		}
	}
</script>
<style scoped lang="less">
	@import '../../static/zwyCss.css';

	.headerSelect {
		width: 100%;
		height: 800rpx;
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		position: relative;

		.icon {
			width: 60rpx;
			height: 60rpx;
			position: absolute;
			top: 40rpx;
			right: 40rpx;
		}

		.headerSelect-title {
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 40rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #262626;
			width: 100%;
			height: 130rpx;
			border-radius: 24rpx 24rpx 0rpx 0rpx;
			opacity: 1;
		}

		.bottomBtn {
			display: flex;
			justify-content: space-around;
			width: 100%;
			height: 88rpx;
			margin-top: 40rpx;

			.headList-left {
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 32rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #515151;
				width: 224rpx;
				height: 88rpx;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				opacity: 1;
				border: 2rpx solid #7F7F7F;
			}

			.headList-right {
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 32rpx;
				font-family: PingFang SC-Bold, PingFang SC;
				font-weight: bold;
				color: #262626;
				width: 420rpx;
				height: 88rpx;
				background: #FCC928;
				box-shadow: 2rpx 12rpx 24rpx 2rpx rgba(252, 201, 40, 0.4);
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				opacity: 1;
			}
		}

		.tapbgc {
			display: flex;
			justify-content: center;
			align-items: center;
			margin-right: 30rpx;
			width: 188rpx;
			height: 68rpx;
			background: #FCC928;
			// box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252,201,40,0.4);
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			opacity: 1;
		}

		.headList {
			width: 100%;
			height: 120rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 36rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #262626;
			position: relative;

			.tips3 {
				position: absolute;
				width: 20rpx;
				height: 20rpx;
				right: 68%;
				top: 40%;
				// z-index: 99999;
			}

			.headList-left {
				margin-left: 30rpx;
			}

			.headList-right {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 188rpx;
				height: 68rpx;
				background: #F1F1F5;
				margin-right: 30rpx;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				font-size: 32rpx;
			}

			.area-item {
				width: 320rpx;
				height: 68rpx;
				margin-right: 30rpx;
				border-radius: 12rpx;
				background-color: #FCC928;
				box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252, 201, 40, 0.4);

				.swiper-item {
					transition: all .3s;
					height: 68rpx;
					line-height: 68rpx;
					text-align: center;
					font-size: 24rpx;
					color: rgba(38, 38, 38, 0.2);
				}

				.swiper-current {
					transition: all .3s;
					font-size: 32rpx;
					color: #262626;
				}
			}

			.active {
				background: #FCC928;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252, 201, 40, 0.4);
			}

			.headThree {
				display: flex;
				justify-content: flex-end;
				width: 60%;
				margin-right: 30rpx;

				view {
					font-size: 32rpx;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
				}

				.text {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 200rpx;
					height: 68rpx;
					background: #F1F1F5;
					margin-left: 20rpx;
					// font-family: PingFang SC-Bold, PingFang SC;
					// box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252,201,40,0.4);
					// border-radius: 12rpx 12rpx 12rpx 12rpx;
				}

				.head-bgc {
					width: 200rpx;
					height: 68rpx;
					background: #FCC928;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
					box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252, 201, 40, 0.4);
				}

				.grade {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 124rpx;
					height: 68rpx;
					background: #F1F1F5;
					margin-left: 20rpx;
				}

				.active {
					background: #FCC928;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
					box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(252, 201, 40, 0.4);
				}

				.head-grd-bgc {
					width: 124rpx;
					height: 68rpx;
					background: #FCC928;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
				}
			}
		}
	}

	.fudai-box {
		width: 100vw;
		height: 100vh;
		// background: #fff;
		display: flex;
		justify-content: center;
		align-items: center;

		.fudai-box-center {
			width: 620rpx;
			height: 800rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			// background: red;
			background-image: url('../../static/fu-dan.png');
			background-repeat: no-repeat;
			background-size: 100% 100%;

			.fudai-box-center-desc {
				// border: 1px solid;
				width: 70%;
				height: 30%;
				line-height: 50rpx;
				padding-top: 130rpx;
				font-size: 32rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #fff;
			}
		}
	}

	::v-deep .uni-swiper__dots-box {
		display: flex;
		justify-content: flex-end;
		right: 30rpx;
	}

	.swiper {
		// width: 100%;
		width: 750rpx;
		height: 120rpx;

		// swiper-item 里面的图片高度
		.image {
			width: 750rpx;
			height: 120rpx;
		}
	}

	.container {
		// border: 1px solid  #007AFF;
		display: flex;
		flex-direction: column;

		.mask {
			background-color: rgba(0, 0, 0, .5);
			width: 100vw;
			height: 100vh;
			position: fixed;
			top: 0;
			left: 0;
			display: flex;
			justify-content: center;
			align-items: center;
			z-index: 998;
		}

		.income-content {
			width: 600rpx;
			// height: 480rpx;
			background: #FFFFFF;
			border-radius: 12rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
		}

		.income-content-text {
			font-size: 36rpx;
			font-weight: bold;
			color: #000000;
			margin: 60rpx 0;
		}

		.income-content-text2 {
			font-size: 36rpx;
			font-weight: bold;
			color: #000000;
			margin: 10rpx 0;
		}

		.income-content-text-title {
			width: 528rpx;
			display: flex;
			flex-direction: row;
			justify-content: flex-start;
			align-items: center;
			margin-bottom: 32rpx;
		}

		.income-content-text-danjai {
			font-size: 32rpx;
			font-weight: 500;
			color: #7F7F7F;
			margin-right: 35rpx;
		}

		.income-content-text-jiage {
			font-size: 32rpx;
			font-weight: 500;
			color: #000000;
		}

		.income-content-text-input {
			width: 140rpx;
			height: 30rpx;
			margin-left: 23rpx;
		}

		.income-content-text-input-view {
			width: 223rpx;
			height: 60rpx;
			border: 1px solid #787878;
			border-radius: 4rpx 0px 0px 4rpx;
			display: flex;
			flex-direction: row;
			align-items: center;
			font-size: 32rpx;
			font-weight: 500;
			color: #000000;
			line-height: 60rpx;
		}

		.income-content-text-zongji {
			font-size: 32rpx;
			font-weight: 500;
			color: #FF4600;
		}

		.income-content-text-button {
			width: 600rpx;
			height: 80rpx;
			border-top: 1rpx solid #BDBDBD;
			display: flex;
			flex-direction: row;
		}

		.income-content-text-button-cancel {
			width: 299rpx;
			height: 80rpx;
			border-right: 1rpx solid #BDBDBD;
			font-size: 32rpx;
			font-weight: 500;
			color: #787878;
			line-height: 80rpx;
			text-align: center;
		}

		.income-content-text-button-ok {
			width: 300rpx;
			height: 80rpx;
			font-size: 32rpx;
			font-weight: 500;
			color: #F39B19;
			line-height: 80rpx;
			text-align: center;
		}

		.income-content-text-button-ok2 {
			width: 100%;
			height: 80rpx;
			font-size: 32rpx;
			font-weight: 500;
			color: #F39B19;
			line-height: 80rpx;
			text-align: center;
		}

		.income-content-baodi-view {
			width: 527rpx;
			height: 48rpx;
			background-color: #FDE4E4;
			border-radius: 24rpx;
			text-align: center;
			font-size: 24rpx;
			font-weight: 500;
			color: #FF4600;
			line-height: 48rpx;
			margin-bottom: 52rpx;
		}

		.maskFirst {
			width: 100vw;
			height: 100vh;
			position: fixed;
			top: 0;
			left: 0;
			z-index: 40;
			background-color: rgba(0, 0, 0, 0.5);

			.maskRemove-indicator {
				position: absolute;
				top: 11%;
				right: 7%;
				// border: 1px solid;
				display: flex;
				justify-content: center;
				align-items: flex-end;
				flex-direction: column;

				.shaixuan {
					image {
						width: 130rpx;
						height: 100%;
					}
				}

				.shaixuan2 {
					image {
						width: 560rpx;
						height: 100%;
					}
				}
			}

			.maskRemove-indicator-2 {
				position: absolute;
				top: 50%;
				right: 0;
				width: 100%;
				// height: 100rpx;
				// background: #fff;
				display: flex;
				justify-content: center;
				align-items: center;

				image {
					width: 260rpx;
					height: 100%;
				}
			}
		}

		&>image {
			align-self: center;
			text-align: center;
			z-index: 10;
			position: fixed;
			top: 500rpx;
			width: 100rpx;
			height: 100rpx;

			&.rotate {
				animation: rotate .5s linear infinite;

				@keyframes rotate {
					0% {
						transform: rotateZ(0deg);
						/*从0度开始*/
					}

					100% {
						transform: rotateZ(360deg);
						/*360度结束*/
					}
				}
			}
		}

		&>.fix-title {
			width: 100%;
			position: fixed;
			top: 0;
			padding-top: calc(var(--status-bar-height) + 16rpx);
			z-index: 97;
			background-color: #fff;
			height: 152rpx;

			.page-section-spacing {
				height: 120rpx;
				position: relative;

				.fudai-icon-box {
					position: absolute;
					right: 2%;
					bottom: -16%;
					width: 120rpx;
					height: 120rpx;
					z-index: 99999;

					// border: 1px solid;
					image {
						width: 750rpx;
						height: 120rpx;
					}
				}
			}

			.change-select {
				height: 80rpx;
				display: flex;
				align-items: center;
				justify-content: space-around;
				color: #262626;
				background: #fff;
				font-size: 32rpx;
				line-height: 60rpx;
				box-sizing: border-box;

				.select {
					font-size: 34rpx;
					color: #F39B19;
					padding-bottom: 1px;
					font-weight: bold;
					border-bottom: 2px solid #F39B19;
				}
			}

			.header {
				width: 100%;
				height: 88rpx;
				display: flex;
				justify-content: space-around;
				align-items: center;

				// background: #FDC928;
				.header-sculpture {
					width: 64rpx;
					position: relative;

					.red-dot {
						width: 12rpx;
						height: 12rpx;
						border-radius: 50%;
						background-color: #F85A41;
						box-shadow: rgba(248, 90, 65, 0.50) 0 2rpx 6rpx 2rpx;
					}

					.img {
						position: relative;
						width: 64rpx;
						height: 64rpx;

						.frame {
							width: 64rpx;
							height: 64rpx;
						}

						.frame1 {
							width: 84rpx;
							height: 84rpx;
						}

						.avatar {
							border-radius: 50%;
							position: absolute;
							top: 50%;
							left: 50%;
							width: 56rpx;
							height: 56rpx;
							margin-left: -28rpx;
							margin-top: -28rpx;
							z-index: 5;
						}

						text {
							font-size: 20rpx;
							position: absolute;
							bottom: 13rpx;
							right: 16rpx;
						}

						.undone {
							font-size: 20rpx;
							position: absolute;
							bottom: 0rpx;
							right: -60rpx;
							z-index: 99;
						}
					}

					.img2 {
						position: relative;
						width: 89rpx;
						height: 95rpx;

						.frame {
							width: 89rpx;
							height: 95rpx;
						}

						.frame1 {
							width: 89rpx;
							height: 95rpx;
						}

						.avatar {
							border-radius: 50%;
							position: absolute;
							top: 53%;
							left: 50%;
							width: 62rpx;
							height: 62rpx;
							margin-left: -31rpx;
							margin-top: -27rpx;
							z-index: 5;
						}

						text {
							font-size: 20rpx;
							position: absolute;
							bottom: 13rpx;
							right: 16rpx;
						}

						.undone {
							font-size: 20rpx;
							position: absolute;
							bottom: 0rpx;
							right: -60rpx;
							z-index: 99;
						}
					}
				}

				.header-center {
					display: flex;
					// justify-content: space-evenly;
					justify-content: center;
					align-items: center;
					width: 300rpx;
					height: 64rpx;
					// background: #F1F1F5;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
					font-size: 24rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #7F7F7F;

					.color-w {
						width: 88rpx;
						height: 52rpx;
						display: flex;
						justify-content: center;
						align-items: center;
					}

					.showColor {
						background: #FDCA2B;
						color: #262626;
						box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(95, 104, 132, 0.3);
						border-radius: 12rpx 12rpx 12rpx 12rpx;
						opacity: 1;
					}

					.header-mask {
						position: fixed;
						z-index: 99;
						top: 50%;
						// left: 50%;
						display: flex;
						justify-content: center;
						align-items: center;
						width: 248rpx;
						height: 84rpx;
						background: #000000;
						border-radius: 12rpx 12rpx 12rpx 12rpx;
						opacity: 0.7;
						font-size: 32rpx;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
					}
				}

				.header-box {
					display: flex;
					justify-content: baseline;
					align-items: center;
					width: 140rpx;
					position: relative;

					.qipao {
						width: 260rpx;
						height: 75rpx;
						position: absolute;
						background: url('../../static/qipao.png');
						background-size: cover;
						top: 50rpx;
						right: 10rpx;
						color: #FFFFFF;
						font-size: 32rpx;
						text-align: center;
						line-height: 75rpx;
						z-index: 999;
					}

					.header-box-gen {
						width: 50rpx;
						height: 50rpx;

						// background-color: #402110;s
						image {
							width: 100%;
							height: 100%;
						}
					}

					.box-number {
						position: absolute;
						top: -2rpx;
						right: 70rpx;
						width: 50rpx;
						height: 24rpx;
						line-height: 24rpx;
						text-align: center;
						font-size: 20rpx;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						background: #F85A41;
						box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(248, 90, 65, 0.5);
						border-radius: 12rpx 12rpx 12rpx 12rpx;
						opacity: 1;
					}

					.header-box-r {
						margin-left: 20rpx;
						padding-left: 10rpx;
					}
				}
			}

			// 类目
			.condition {
				display: flex;
				border-bottom: 1rpx solid #f3f3f3;

				&>view {
					width: 25vw;
					height: 100rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					color: rgba(64, 33, 16, 0.50);

					image {
						width: 14rpx;
						height: 8rpx;
						margin-left: 10rpx;
					}

					&.select {
						color: #F39B19;
					}
				}
			}

			// 遮罩层
			.mask {
				// border: 1px solid #000000;
				z-index: 9;
				width: 100vw;
				position: fixed;
				top: calc(var(--status-bar-height) + 192rpx);
				height: calc(100vh - var(--status-bar-height) + 192rpx);
				pointer-events: none;
				background: transparent;
				transition: all .3s;

				&.show {
					background: rgba(0, 0, 0, 0.40);
					pointer-events: auto;
				}

				&.shows {
					top: 0rpx;
					background: rgba(0, 0, 0, 0.40);
					pointer-events: auto;
					text-align: center;
					line-height: 65;
				}
			}

			// 白色筛选框
			&>.screen {
				width: 100vw;
				position: fixed;
				z-index: 99;
				background: #FFFFFF;
				top: calc(var(--status-bar-height) + 185rpx);
				overflow: hidden;

				// 统一的白色样式
				&>.main {
					// transition: height .3s;
					background: #FFFFFF;
					line-height: 40rpx;
					overflow: scroll;

					&>view {
						height: 90rpx;
						display: flex;
						justify-content: space-between;
						align-items: center;
						margin-left: 56rpx;
						margin-right: 30rpx;

						&>icon {
							margin-top: -26rpx;
							width: 26rpx;
							height: 20rpx;
						}
					}
				}

				&>.area-screen {
					height: 0;
					transition: height .3s;

					&.show {
						height: 800rpx;
					}
				}

				// 零工类型
				&>.job-screen {
					height: 0;
					transition: height .3s;

					&.show {
						height: 360rpx;
					}
				}

				//筛选
				&>.filter-screen {
					height: 0;
					transition: height .3s;

					&.show {
						height: 480rpx;
					}

					&>.title {
						line-height: 40rpx;
						color: #999;
						padding-top: 30rpx;
						margin: 0 30rpx 20rpx;
					}

					&>.sex-list {
						// border: 1px solid #007AFF;
						width: 95%;
						margin: 0 auto;
						height: 64rpx;
						display: flex;
						justify-content: space-around;
						align-items: center;

						// margin: 0rpx 30rpx;
						&>view {
							width: 200rpx;
							height: 64rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							background: #F2F2F2;
							border-radius: 50px;
							margin: 0;
							// margin-right: 30rpx;
							color: #402110;

							&.select {
								background: #FCC928;
								color: #402110;
							}
						}
					}

					&>.reward-choose {
						// border: 1px solid #000000;
						width: 91%;
						margin: 0 auto;
						display: flex;
						align-items: center;
						justify-content: space-around;

						// margin: 0 30rpx;
						input {
							width: 280rpx;
							height: 68rpx;
							background: #F2F2F2;
							border-radius: 2px;
							text-align: center;
							border-radius: 50rpx;
						}

						view {
							margin: 0 30rpx;
						}
					}

					.handles {
						margin: 40rpx 30rpx 0;
						display: flex;
						justify-content: space-between;

						&>view {
							width: 330rpx;
							height: 80rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							border-radius: 40rpx;

							&:active {
								opacity: .7;
							}
						}

						&>view:first-child {
							border: 1px solid #F39B19;
							color: #F39B19;
						}

						&>view:last-child {
							background: #FCC928;
							color: #402110;
						}
					}
				}
			}
		}

		&>.scroll-view {
			// border-bottom: 1px solid #007AFF;
			z-index: 2;
			background: #FFF;
			height: calc(100vh - var(--status-bar-height) - 352rpx);
			position: fixed;
			margin-top: calc(var(--status-bar-height) + 352rpx);

			.loadingGif {
				display: block;
				width: 64rpx;
				height: 50rpx;
				margin: 20rpx auto -20rpx auto;
			}

			.undoneList {
				margin-top: 15rpx;
				background-color: #F1F1F5;
				// overflow: hidden;
				min-height: 80vh;

				.undoneList-empty {
					height: calc(100vh - var(--status-bar-height) - 288rpx);
					background-color: #fff;
					display: flex;
					justify-content: center;
					align-items: center;

					.list-empt {
						width: 100%;
						height: 100%;
						// border: 1px solid;
						display: flex;
						justify-content: center;
						align-items: center;

						image {
							width: 630rpx;
							height: 400rpx;
						}
					}
				}

				.u-swipe-action-item:last-child {
					margin-bottom: 100rpx;
				}

				.u-swipe-action-item {
					margin-top: 20rpx;
					touch-action: auto;

					.job-info {
						position: relative;
						display: flex;
						flex-direction: column;
						background-color: #FFFFFF;
						padding: 20rpx;

						&>view {
							display: flex;
						}

						&>view:nth-child(1) {
							justify-content: space-between;
							margin-bottom: 15rpx;

							&>text {
								height: 48rpx;
								font-size: 18px;
								letter-spacing: 0;
							}

							&>.status {
								font-size: 28rpx;

								&.waitEmployer,
								&.waitEmployee,
								&.waitWork,
								&.inProgress {
									color: #F39B19;
								}

								&.cancel {
									color: rgba(64, 33, 16, 0.5);
								}

								&.finish,
								&.comment {
									color: #4E9800;
								}
							}
						}

						&>view:nth-child(2) {
							// height: 34rpx;
							display: flex;
							margin-bottom: 15rpx;
							font-size: 12px;
							color: rgba(64, 33, 16, 0.70);
							letter-spacing: 0;

							&>image {
								align-self: center;
								width: 26rpx;
								height: 30rpx;
								margin-right: 10rpx;
							}

							&>text {
								// border: 1px solid #000000;
								width: 650rpx;
							}
						}

						&>view:nth-child(3) {
							display: flex;
							justify-content: space-between;
							align-items: center;

							// border: 1px solid #000000;
							&>.money {
								margin-right: 20rpx;
								// height: 48rpx;
								font-weight: bold;
								font-size: 20px;
								color: #FF650C;
								letter-spacing: 0;
							}

							&>.subsidy {
								font-weight: bold;
								font-size: 17px;
								color: #4E9800;
							}

							&::after {
								content: "";
								position: absolute;
								bottom: 0rpx;
								width: 720rpx;
								height: 2rpx;
								background: #F2F2F2;
							}
						}

						&>.buttons {
							align-self: flex-end;
							font-size: 30rpx;
							font-weight: bold;

							&>.button {
								// min-width: 132rpx;
								padding: 0 30rpx;
								height: 76rpx;
								border-radius: 12rpx;
								line-height: 76rpx;
								text-align: center;
								// display: flex;
								// align-items: center;
								// justify-content: center;
								box-shadow: 0rpx 2rpx 6rpx 1rpx rgba(252, 201, 40, 0.4);

								&:active {
									opacity: 0.7;
								}
							}

							.button:nth-child(1) {
								// padding: 0 20rpx;
								box-sizing: border-box;
								border: 1px solid rgba(64, 33, 16, 0.90);
								color: rgba(64, 33, 16);
								box-shadow: none;
							}

							.button:nth-child(2) {
								margin-left: 30rpx;
								color: #FFFFFF;
							}
						}
					}
				}
			}

			// 列表
			.list2 {
				height: calc(100vh - var(--status-bar-height) - 580rpx);
				display: flex;
				justify-content: center;
				align-items: center;

				.list-empt {
					width: 100%;
					height: 100%;
					// border: 1px solid;
					display: flex;
					justify-content: center;
					align-items: center;
				}
			}

			.list {
				background-color: #FFFFFF;
				margin-top: 30rpx;
				position: relative;

				.danwang {
					font-size: 20rpx;
					color: #fff;
					height: 48rpx;
					background: rgba(0, 0, 0, 0.6);
					border-radius: 26rpx;
					text-align: center;
					line-height: 48rpx;
					position: absolute;
					top: 16rpx;
					right: 30rpx;
					z-index: 99;
					padding: 0 20rpx;
					animation: toRight 0.8s ease-out 10s both;
				}

				&>.employer-info {
					padding: 0 30rpx;
					// border-bottom: 1px solid #F2F2F2;
					border-bottom: 1px solid #F2F2F2;
					display: flex;
					align-items: center;
					justify-content: space-between;

					&>view {
						display: flex;

						&>image {
							width: 108rpx;
							height: 108rpx;
							margin-right: 30rpx;
						}

						&>view {
							display: flex;
							flex-direction: column;

							&>view:first-child {
								display: flex;
								margin-bottom: 20rpx;

								&>text {
									margin-right: 20rpx;
									height: 48rpx;
									font-size: 17px;
								}

								&>image {
									align-self: flex-end;
									width: 26rpx;
									height: 26rpx;
								}
							}

							&>view:last-child {
								height: 40rpx;
								display: flex;
								align-items: center;

								text:first-child {
									margin-right: 30rpx;
									color: rgba(64, 33, 16, 0.70);
								}

								text:last-child {
									font-weight: bold;
								}
							}
						}
					}

					&>view:last-child {
						flex-direction: column;
						text-align: right;

						&>text:first-child {
							margin-bottom: 2rpx;
							height: 34rpx;
							font-size: 12px;
							color: rgba(64, 33, 16, 0.70);
						}

						&>text:last-child {
							height: 60rpx;
							font-weight: bold;
							font-size: 22px;
							color: #F39B19;
						}
					}
				}

				&>.job-info {
					padding: 0 30rpx 30rpx;
					position: relative;
					letter-spacing: 0;
					overflow: hidden;

					&>view:first-child {
						// border: 1px solid #007AFF;
						// margin-bottom: 10rpx;
						// height: 60rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin: 24rpx 0 0;

						text:first-child {
							font-weight: normal;
							font-size: 36rpx;
						}

						.youxian-tab {
							width: 44rpx;
							height: 44rpx;
							margin-right: 20rpx;
							background: linear-gradient(#FFCE09, #F99500);
							border-radius: 6rpx;
							text-align: center;
							line-height: 44rpx;
							color: #fff;
							font-size: 24rpx;
							font-weight: bold;
						}

						.goods-name {
							font-weight: normal;
							font-size: 36rpx;
						}
					}

					&>view:nth-child(2) {
						// border: 1px solid #007AFF;
						margin: 16rpx 0;
						display: flex;
						align-items: center;
						justify-content: space-between;

						&>.tag {
							display: flex;

							&>text {
								padding: 0 5rpx;
								margin-right: 10rpx;
								text-align: center;
								font-size: 12px;
								color: #F39B19;
								border: 1px solid #F39B19;
								border-radius: 2px;
								white-space: nowrap;
							}

							.tag-tomorrow {
								color: #599E10;
								border: 1px solid #599E10;
							}
						}
					}

					// 工资，距离
					&>view:nth-child(3) {
						// border: 1px solid #007AFF;
						// margin-bottom: 10rpx;
						display: flex;
						justify-content: space-between;
						align-items: center;

						// margin-top: -5rpx;
						&>text:first-child {
							font-size: 17px;
							font-weight: bold;
							color: #FF650C;
						}

						&>text:last-child {
							// align-self: flex-end;
							margin-top: 5rpx;
							font-size: 12px;
							color: #515151;
						}
					}

					&::after {
						content: "";
						position: absolute;
						bottom: 0;
						width: 700rpx;
						height: 2rpx;
						// border-radius: 1px;
						background: #F3F3F3;
					}
				}
			}
		}
	}

	.wait-for-confirmation {
		width: 168rpx;
		height: 84rpx;
		background: #4e9800;
		box-shadow: 0px 0px 20rpx 0px rgba(78, 152, 0, 0.5);
		border-radius: 42rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		position: fixed;
		right: 30rpx;
		bottom: 300rpx;

		.gz-zhong-text {
			color: #fff;
			font-size: 28rpx;
		}
	}

	.wait-for-confirmation-red {
		width: 168rpx;
		height: 84rpx;
		background: #FF3E2B;
		box-shadow: 0px 0px 20rpx 0px rgba(255, 62, 43, .5);
		border-radius: 42rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		position: fixed;
		right: 30rpx;
		bottom: 189rpx;
	}

	.wait-for-confirmation-text {
		//width: 119rpx;
		height: 2rpx;
		font-size: 24rpx;
		font-weight: bold;
		color: #FFFFFF;
	}

	.wait-for-confirmation-time {
		width: 62rpx;
		height: 18rpx;
		font-size: 24rpx;
		font-weight: 500;
		color: #FFFFFF;
	}

	.wait-for-confirmation-icon {
		width: 20rpx;
		height: 20rpx;
	}

	.floorsstr-view {
		height: 34rpx;
		background: #53940D;
		border-radius: 4rpx;
		font-size: 24rpx;
		font-weight: 500;
		color: #ffffff;
		line-height: 34rpx;
		margin-left: 12rpx;
		padding: 5rpx 12rpx;
		text-align: center;
	}

	.taskState {
		display: flex;
		flex-direction: row;
		align-items: center;
		//margin-left: 12rpx;
		flex: 1;
		flex-wrap: wrap;

		.money {
			display: flex;
			align-items: center;
		}

		.subsidy {
			margin-left: 10rpx;
			font-size: 24rpx;
			color: #402110;
		}

		// 补贴
		&>.subsidy1 {
			font-size: 17px;
			font-weight: bold;
			color: #4E9800;
		}
	}

	.to-detail {
		width: 150rpx;
		height: 66rpx;
		text-align: center;
		line-height: 66rpx;
		border-radius: 6rpx;
		color: #262626;
		background-color: #FCC92D;
		font-weight: bold;
		// .honesty {
		// 	position: relative;
		// 	z-index: 0;
		// 	font-size: 20rpx;
		// 	color: #262626;
		// 	text-align: center;
		// 	background-color: #FCC92D;
		// 	padding: 0rpx 10rpx;
		// 	margin-top: -15rpx;
		// 	border-radius: 30rpx;
		// }
		// &>image {
		// 	width: 50rpx;
		// 	height: 50rpx;
		// 	border-radius: 50%;
		// }
	}

	.jinpaidaojishi {
		height: 34rpx;
		border: 1rpx solid #FF3C2E;
		border-radius: 4rpx;
		margin-left: 12rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.jinpaidaojishi-content {
		padding: 0 10rpx;
		height: 34rpx;
		background-color: #FF3C2E;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;

		&>image {
			display: none;
			width: 27rpx;
			height: 28rpx;
			margin-right: 8rpx;
		}

		&>text {
			font-size: 24rpx;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 34rpx;
		}
	}

	.jinpaidaojishi-time {
		display: inline-block;
		text-align: center;
		font-size: 24rpx;
		font-weight: 500;
		color: #FF3C2E;
		line-height: 34rpx;
		padding: 0 10rpx;
	}

	.money {
		font-size: 20px;
		font-weight: bold;
	}

	.renxinhongbao {
		width: 155rpx;
		height: 165rpx;
		// background-image: url(../../static/icon3/xinrengongshihongbao/5.png);
		background-size: 100% 100%;
		position: fixed;
		right: 18rpx;
		bottom: 320rpx;
		text-align: center;
	}

	.renxinhongbao-weijiesuo {
		display: inline-block;
		margin-top: 35rpx;
		font-size: 16rpx;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 20rpx;
	}

	.renxinhongbao-jiage {

		// margin-top: 10rpx;s
		&>text:nth-child(1) {
			font-size: 52rpx;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 8rpx;
			background: linear-gradient(0deg, #FFC03F 0%, #FFE9AA 100%);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			line-height: 40rpx;
		}

		&>text:nth-child(2) {
			font-size: 18rpx;
			font-weight: 500;
			color: #FDC390;
			line-height: 40rpx;
		}
	}

	.jieduan-jindu {
		margin: 6rpx auto 0rpx auto;
		width: 112rpx;
		height: 8rpx;
		background: #C90009;
		border-radius: 6rpx;
	}

	.jieduan-jindu-line {
		width: 0rpx;
		height: 8rpx;
		background: linear-gradient(90deg, #FFC03F, #FFE9AA);
		border-radius: 6rpx;
	}

	.renxinhongbao-shengyuxiaoshi {
		&>text:nth-child(1) {
			font-size: 18rpx;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 18rpx;
		}

		&>text:nth-child(2) {
			font-size: 18rpx;
			font-weight: 500;
			color: #FFE8A7;
			line-height: 18rpx;
		}
	}

	.zuliAlert {
		width: 750rpx;
		height: 88rpx;
		background-color: rgba(0, 0, 0, .6);
		position: fixed;
		bottom: 50px;
		z-index: 2;
		display: flex;
		align-items: center;

		&>image:nth-child(1) {
			width: 32rpx;
			height: 32rpx;
			margin-left: 30rpx;
			margin-right: 12rpx;
		}

		&>text:nth-child(2) {
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 88rpx;
		}

		&>image:nth-child(3) {
			position: absolute;
			width: 32rpx;
			height: 32rpx;
			right: 30rpx;
		}
	}

	.collection {}

	.beLate {
		width: 272rpx;
		height: 44rpx;
		background: #F85A41;
		border-radius: 6rpx;
		opacity: 1;
		color: #FFFFFF;
		font-size: 28rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: auto;
		margin-left: 20rpx;
	}

	.chaoshi {
		position: fixed;
		right: 0rpx;
		bottom: 194rpx;
		padding: 12rpx 40rpx;
		text-wrap: nowrap;
		z-index: 999;
		background: #EE1F1F;
		box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(238, 31, 31, 0.6);
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		opacity: 1;
		color: #fff !important;
		display: flex;
	}

	.buttonIcon {
		border: none !important;
		font-size: 28rpx;
		width: 110rpx;
		height: 76rpx;
		line-height: 76rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #F1F1F5;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		color: #515151 !important;
		position: relative;
	}

	// .buttonCont {}
	.buttonText {
		position: absolute;
		width: 132rpx;
		height: 76rpx;
		top: 45rpx;
		right: 30rpx;
		border-radius: 4rpx;
		background: #fff;
		font-size: 28rpx;
		line-height: 76rpx;
		text-align: center;
		bbox-shadow: 1rpx 1rpx 1rpx #A5A5A5;
		box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(72, 76, 84, 0.2);
		color: #515151;
	}

	.buttonText:after {
		content: '';
		position: absolute;
		bottom: -16rpx;
		left: 50%;
		z-index: 1;
		display: block;
		margin-left: -16rpx;
		width: 0;
		border-color: #FFF transparent;
		border-style: solid;
		border-width: 16rpx 16rpx 0 16rpx;
	}

	.mask2 {
		.income-content {
			width: 630rpx;
			height: 470rpx;
			background: #FFFFFF;
			justify-content: space-between;
		}

		.income-content-text-button {
			border: none;
			height: auto;
			display: flex;
			justify-content: space-between;
			padding-bottom: 30rpx;
		}

		.income-content-text {
			font-size: 40rpx;
			font-weight: 800;
			color: #262626;
			line-height: 0rpx;
		}

		.income-content-text2 {
			font-size: 28rpx;
			color: #515151;
			font-weight: bold;
		}

		.income-content-baodi-view {
			color: #EE1F1F;
			font-weight: bold;
			font-size: 28rpx;
			background: #fff
		}

		.income-content-text-button-ok2 {
			width: 254rpx;
			height: 94rpx;
			background: #F1F1F5;
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			opacity: 1;
			font-size: 24rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #7F7F7F;
			line-height: 94rpx;
			color: #262626;
			font-size: 24rpx;
		}

		.income-content-text-button-cancel {
			width: 254rpx;
			height: 94rpx;
			background: #FCC92D;
			box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(252, 201, 45, 0.3);
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			opacity: 1;
			font-size: 28rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			line-height: 94rpx;
		}
	}

	.shougong {
		background: #fff;
		height: 616rpx;
		border-radius: 24rpx;
		width: 100%;

		&-title {
			text-align: center;
			margin: 41rpx 0 16rpx 0;
			font-size: 40rpx;
			font-weight: 800;
			color: #262626;
		}

		&-tip {
			font-size: 28rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #F85A41;
			text-align: center;
		}

		&-form {
			display: flex;
			margin: 0 14rpx;
			display: flex;
			justify-content: space-between;
			height: 120rpx;
			align-items: center;

			&-text {
				font-size: 32rpx;
				font-weight: 400;
				color: #1A1A1A;
				margin-left: 28rpx;
			}

			&-input {
				height: 80rpx;
				background: #FFFFFF;
				display: flex;
				justify-content: center;
				align-items: center;

				&-o {
					width: 138rpx;
					height: 80rpx;
					background: #FFFFFF;
					border-radius: 6rpx 6rpx 6rpx 6rpx;
					opacity: 1;
					outline: none;
					border: 2rpx solid #515151;
					margin-right: 30rpx;
				}
			}
		}

		&-footer {
			display: flex;
			justify-content: space-between;

			&>view:nth-child(1) {
				width: 224rpx;
				height: 88rpx;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				opacity: 1;
				border: 2rpx solid #7F7F7F;
				text-align: center;
				line-height: 88rpx;
				color: #515151;
			}

			&>view:nth-child(2) {
				width: 420rpx;
				height: 88rpx;
				background: #FCC928;
				box-shadow: 2rpx 12rpx 24rpx 2rpx rgba(252, 201, 40, 0.4);
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				color: #262626;
				line-height: 88rpx;
				text-align: center;
				color: #262626;
				font-size: 36rpx;
			}
		}
	}

	.shougong {
		background: #fff;
		height: 616rpx;
		border-radius: 24rpx;
		width: 100%;

		&-title {
			text-align: center;
			margin: 41rpx 0 16rpx 0;
			font-size: 40rpx;
			font-weight: 800;
			color: #262626;
		}

		&-tip {
			font-size: 28rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #F85A41;
			text-align: center;
		}

		&-form {
			display: flex;
			margin: 0 14rpx;
			display: flex;
			justify-content: space-between;
			height: 120rpx;
			align-items: center;

			&-text {
				font-size: 32rpx;
				font-weight: 400;
				color: #1A1A1A;
				margin-left: 28rpx;
			}

			&-input {
				height: 80rpx;
				background: #FFFFFF;
				text-align: center;
				display: flex;
				justify-content: center;
				align-items: center;

				&-o {
					width: 138rpx;
					height: 80rpx;
					background: #FFFFFF;
					border-radius: 6rpx 6rpx 6rpx 6rpx;
					opacity: 1;
					outline: none;
					border: 2rpx solid #515151;
					margin-right: 30rpx;
				}
			}
		}

		&-footer {
			display: flex;
			justify-content: space-between;

			&>view:nth-child(1) {
				width: 224rpx;
				height: 88rpx;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				opacity: 1;
				border: 2rpx solid #7F7F7F;
				text-align: center;
				line-height: 88rpx;
				color: #515151;
			}

			&>view:nth-child(2) {
				width: 420rpx;
				height: 88rpx;
				background: #FCC928;
				box-shadow: 2rpx 12rpx 24rpx 2rpx rgba(252, 201, 40, 0.4);
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				color: #262626;
				line-height: 88rpx;
				text-align: center;
				color: #262626;
				font-size: 36rpx;
			}
		}
	}

	.btn-left {
		margin-left: 0;
		margin-left: 20rpx;
	}

	.btn-right {
		margin-right: 0;
		margin-right: 20rpx;
	}

	.btn-text2 {
		margin-top: -60rpx;
	}

	.makeSureBtn {
		display: flex;
		justify-content: space-around;
	}

	.shougong-form {
		margin: 0 32rpx;
	}

	@keyframes toRight {
		from {
			opacity: 1;
		}

		to {
			transform: translateX(300px);
			opacity: 0;
			display: none;
		}
	}

	.mask {
		.content {
			image {
				width: 70rpx;
				height: 70rpx;
				margin-bottom: 40rpx;
			}

			.inner {
				width: 630rpx;
				height: 718rpx;
				margin: 0 auto;
				background-color: #fff;
				border-radius: 24rpx;
				text-align: center;
				padding: 60rpx 0;
				box-sizing: border-box;

				view:nth-child(1) {
					color: #262626;
					font-size: 36rpx;
					font-weight: bold;
					line-height: 54rpx;
					margin-bottom: 10rpx;
				}

				view:nth-child(2) {
					color: #515151;
					font-size: 28rpx;
					margin-bottom: 50rpx;

					span {
						font-weight: bold;
						margin: 0 10rpx;
					}
				}

				view:nth-child(3) {
					color: #262626;
					font-size: 36rpx;
					font-weight: bold;
					line-height: 54rpx;
					margin-bottom: 60rpx;

					span {
						display: inline-block;
						background-color: rgba(255, 76, 76, 0.2);
						border-radius: 10rpx;
						width: 64rpx;
						text-align: center;
						height: 64rpx;
						line-height: 64rpx;
						padding: 0 10rpx;
						color: #FF4C4C;
						margin: 0 20rpx;
					}
				}

				image {
					width: 212rpx;
					height: 324rpx;
				}
			}

			.btn {
				width: 512rpx;
				height: 88rpx;
				border-radius: 12rpx;
				background-color: #FCC92D;
				color: #262626;
				text-align: center;
				line-height: 88rpx;
				margin: 40rpx auto auto auto;
			}
		}
	}

	.tips {
		width: 198rpx;
		height: 44rpx;
		background: #FFD04E;
		border-radius: 24rpx;
		opacity: 1;
		display: flex;
		align-items: center;
		font-size: 20rpx;
		justify-content: flex-end;
		margin-left: -45rpx;

		.img {
			width: 26rpx;
			height: 26rpx;
			margin: auto 20rpx auto 8rpx;
		}
	}

	.scoreLimit {
		position: fixed;
		top: 700rpx;
		z-index: 99;
		right: 0;
		height: 56rpx;
		background: #FE4B28;
		color: #fff;
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: bold;
		padding: 0 15rpx;
		text-align: center;
		line-height: 60rpx;
		border-radius: 28rpx 0px 0rpx 28rpx;
		display: flex;
		align-items: center;

		image {
			width: 28rpx;
			height: 28rpx;
			margin-right: 10rpx;
		}
	}

	.undone2 {
		margin-top: -50rpx;
		margin-left: 90rpx;
		width: 120rpx;
		height: 30rpx;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 22rpx;
		line-height: 30rpx;
		padding-left: 10rpx;
		color: rgba(254, 69, 56, 0.5);
		border: 2rpx solid rgba(254, 69, 56, 0.5);
	}
</style>